fix: reduce motr proxy shutdown timeout
This commit is contained in:
1 parent
162e246307
commit
4463bf6ffb
9 files changed
+43
-42
No files matched your search
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user