Skip to content

Commit 19a545a

Browse files
committed
fix: remove redundant timeout
1 parent 7a77962 commit 19a545a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/fx/server.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"net"
77
"net/http"
8-
"time"
98

109
"github.com/fil-forge/hilt/pkg/config"
1110
"github.com/fil-forge/hilt/pkg/echo/middleware"
@@ -71,9 +70,7 @@ func RegisterServerLifecycle(
7170
},
7271
OnStop: func(ctx context.Context) error {
7372
logger.Info("shutting down server")
74-
shutdownCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
75-
defer cancel()
76-
return e.Shutdown(shutdownCtx)
73+
return e.Shutdown(ctx)
7774
},
7875
})
7976
}

0 commit comments

Comments
 (0)