Skip to content

Commit a47231d

Browse files
committed
fix: use provided context for API server shutdown timeout
1 parent 9af398f commit a47231d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HadesLogManager/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func waitForShutdown(
153153
cancel()
154154

155155
// Shutdown API server with timeout
156-
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), shutdownTimeout)
156+
shutdownCtx, shutdownCancel := context.WithTimeout(ctx, shutdownTimeout)
157157
defer shutdownCancel()
158158

159159
if err := server.Shutdown(shutdownCtx); err != nil {

0 commit comments

Comments
 (0)