Skip to content

Commit 7ff1822

Browse files
committed
fix withTimeout ptoblem
1 parent a64b6e7 commit 7ff1822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ func main() {
471471
signal.Notify(stop, os.Interrupt, syscall.SIGTERM)
472472
<-stop
473473

474-
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
474+
ctx, cancel := context.WithTimeout(context.Background(), 45*time.Second)
475475
defer cancel()
476476
if err := srv.Shutdown(ctx); err != nil {
477477
log.Printf("Server shutdown error: %v", err)

0 commit comments

Comments
 (0)