fix: actually fix linter issues (#720)

This commit is contained in:
Alessandro (Ale) Segala
2025-07-04 19:14:44 -07:00
committed by GitHub
parent 43f0114c57
commit 7fe83f8087

View File

@@ -56,12 +56,11 @@ func Bootstrap(ctx context.Context) error {
// Invoke all shutdown functions // Invoke all shutdown functions
// We give these a timeout of 5s // We give these a timeout of 5s
// Note: we use a background context because the run context has been canceled already // Note: we use a background context because the run context has been canceled already
// nolint:contextcheck
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 5*time.Second) shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 5*time.Second)
defer shutdownCancel() defer shutdownCancel()
err = utils. err = utils.
NewServiceRunner(shutdownFns...). NewServiceRunner(shutdownFns...).
Run(shutdownCtx) Run(shutdownCtx) //nolint:contextcheck
if err != nil { if err != nil {
log.Printf("Error shutting down services: %v", err) log.Printf("Error shutting down services: %v", err)
} }