Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Nov 21, 2024
1 parent d740e5f commit 3786979
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/ingress/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ func (n *NGINXController) stopWait() {
}

// Wait at least for the configured duration, if any
delay := waitAtLeastUntil.Sub(time.Now())
delay := time.Until(waitAtLeastUntil)
if delay > 0 {
time.Sleep(delay)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/process/sigterm.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func HandleSigterm(ngx Controller, delay int, exit exiter) {
}

if delay > 0 {
klog.Warning("[DEPRECATED] Delaying controller exit for %d seconds", delay)
klog.Warningf("[DEPRECATED] Delaying controller exit for %d seconds", delay)
klog.Warning("[DEPRECATED] 'post-shutdown-grace-period' does not have any effect for graceful shutdown - use 'shutdown-grace-period' flag instead.")
time.Sleep(time.Duration(delay) * time.Second)
}
Expand Down

0 comments on commit 3786979

Please sign in to comment.