Skip to content

Commit

Permalink
Remove unnecessary channel
Browse files Browse the repository at this point in the history
  • Loading branch information
dippynark committed Dec 12, 2023
1 parent dca33cb commit 9351414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (s *DefaultServer) Start(ctx context.Context) error {
// migrating clients to server instances that are not about to shutdown
srv.SetKeepAlivesEnabled(false)
// Wait before shutting down webhook server
<-time.After(s.Options.ShutdownDelay)
time.Sleep(s.Options.ShutdownDelay)

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

Expand Down

0 comments on commit 9351414

Please sign in to comment.