fix: reduce motr proxy shutdown timeout

This commit is contained in:
Prad Nukala committed 2024-09-27 11:00:54 -04:00
1 parent 162e246307
commit 4463bf6ffb
9 files changed
+43 -42

No files matched your search

+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.