Skip to content

Commit

Permalink
fixup commit post review 2
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Jan 7, 2025
1 parent 8cc7308 commit 35a2063
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/scality-cosi-driver/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ func run(ctx context.Context) error {
}

err = server.Run(ctx, registry)
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 5*time.Second)
defer shutdownCancel()
shutdownCtx, _ := context.WithTimeout(context.Background(), 5*time.Second)
if shutdownErr := metricsServer.Shutdown(shutdownCtx); shutdownErr != nil {
klog.ErrorS(shutdownErr, "Failed to gracefully shutdown metrics server")
}
Expand Down

0 comments on commit 35a2063

Please sign in to comment.