Skip to content

Commit 9351414

Browse files
committed
Remove unnecessary channel
1 parent dca33cb commit 9351414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/webhook/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (s *DefaultServer) Start(ctx context.Context) error {
257257
// migrating clients to server instances that are not about to shutdown
258258
srv.SetKeepAlivesEnabled(false)
259259
// Wait before shutting down webhook server
260-
<-time.After(s.Options.ShutdownDelay)
260+
time.Sleep(s.Options.ShutdownDelay)
261261

262262
log.Info("Shutting down webhook server with timeout of 1 minute")
263263

0 commit comments

Comments
 (0)