We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a64b6e7 commit 7ff1822Copy full SHA for 7ff1822
main.go
@@ -471,7 +471,7 @@ func main() {
471
signal.Notify(stop, os.Interrupt, syscall.SIGTERM)
472
<-stop
473
474
- ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
+ ctx, cancel := context.WithTimeout(context.Background(), 45*time.Second)
475
defer cancel()
476
if err := srv.Shutdown(ctx); err != nil {
477
log.Printf("Server shutdown error: %v", err)
0 commit comments