Skip to content

Commit

Permalink
chore: panic when updater routine fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ckartik committed Jul 4, 2024
1 parent 8c9f0a7 commit d4f6b58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oracle/pkg/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ func (u *Updater) Start(ctx context.Context) <-chan struct{} {
go func() {
defer close(doneChan)
if err := eg.Wait(); err != nil {
u.logger.Error("failed to start updater", "error", err)
u.logger.Error("updater failed, exiting", "error", err)
panic(err)
}
}()

Expand Down

0 comments on commit d4f6b58

Please sign in to comment.