diff --git a/lib/secretsscanner/authorizedkeys/authorized_keys.go b/lib/secretsscanner/authorizedkeys/authorized_keys.go index ae6e2adb1b8c8..c3472492af21c 100644 --- a/lib/secretsscanner/authorizedkeys/authorized_keys.go +++ b/lib/secretsscanner/authorizedkeys/authorized_keys.go @@ -210,7 +210,10 @@ func (w *Watcher) start(ctx context.Context) error { } if !timer.Stop() { - <-timer.Chan() + select { + case <-timer.Chan(): + default: + } } timer.Reset(jitterFunc(maxReSendInterval)) diff --git a/mm/main.go b/mm/main.go new file mode 100644 index 0000000000000..ccfa42db295dd --- /dev/null +++ b/mm/main.go @@ -0,0 +1 @@ +package mm