fix: reduce motr proxy shutdown timeout

This commit is contained in:
Prad Nukala
2024-09-27 11:00:54 -04:00
parent 162e246307
commit 4463bf6ffb
9 changed files with 43 additions and 42 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func NewProxyCmd() *cobra.Command {
// Wait for interrupt signal to gracefully shutdown the server with a timeout of 10 seconds.
<-ctx.Done()
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
// Shutdown the server with 10 seconds timeout.