|
@@ -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 {
|