From 0f0ba04647810fc3c94e8ea6fb0d4bf5cc1f047e Mon Sep 17 00:00:00 2001 From: marcusDenslow Date: Tue, 9 Jun 2026 00:22:01 +0200 Subject: [PATCH] refactor(api): rename shutdown ctx to shutdownCtx for clarity --- api/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/main.go b/api/main.go index 6dbd5d2..b9d629c 100644 --- a/api/main.go +++ b/api/main.go @@ -178,10 +178,10 @@ func main() { log.Println("Server is shutting down...") // Graceful shutdown with 30 second timeout - ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second) - defer cancel() + shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 30*time.Second) + defer shutdownCancel() - if err := server.Shutdown(ctx); err != nil { + if err := server.Shutdown(shutdownCtx); err != nil { log.Fatalf("Server forced to shutdown: %v", err) }