Skip to content

Commit b1a1ed8

Browse files
explicit panic when context is cancelled
1 parent da42e03 commit b1a1ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rolling-shutter/keyperimpl/shutterservice/syncmonitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (s *SyncMonitor) runMonitor(ctx context.Context) error {
4646
}
4747
case <-ctx.Done():
4848
log.Info().Msg("stopping syncMonitor due to context cancellation")
49-
return ctx.Err()
49+
panic("context was canceled")
5050
}
5151
}
5252
}

0 commit comments

Comments
 (0)