Skip to content

Commit d4f6b58

Browse files
committed
chore: panic when updater routine fails
1 parent 8c9f0a7 commit d4f6b58

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

oracle/pkg/updater/updater.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ func (u *Updater) Start(ctx context.Context) <-chan struct{} {
216216
go func() {
217217
defer close(doneChan)
218218
if err := eg.Wait(); err != nil {
219-
u.logger.Error("failed to start updater", "error", err)
219+
u.logger.Error("updater failed, exiting", "error", err)
220+
panic(err)
220221
}
221222
}()
222223

0 commit comments

Comments
 (0)