Skip to content

Commit 025e9fd

Browse files
removed explicit panic
1 parent 49352ed commit 025e9fd

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-
panic("context was canceled")
49+
return ctx.Err()
5050
}
5151
}
5252
}

0 commit comments

Comments
 (0)