Browse Source

Increase timeout

Vova Tkach 6 years ago
parent
commit
33d666bae8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -64,7 +64,7 @@ func main() {
 	<-stop
 
 	log.Printf("Shutting down server...\n")
-	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
+	ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
 	defer cancel()
 
 	if err := srv.Shutdown(ctx); err != nil {