Skip to content

Commit

Permalink
Add error checking back
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Oct 30, 2024
1 parent 8588aa9 commit af413de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/gcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ func main() {
})

err = srv.ListenAndServe()
if err != http.ErrServerClosed {
klog.Warningf("Server exited: %v", err)
}
// Wait will only block if the function passed to awaitSignal was called,
// in which case it'll block until the HTTP server has gracefully shutdown
shutdownWG.Wait()
Expand Down

0 comments on commit af413de

Please sign in to comment.