pkg/cron/cron.go 🔗
@@ -39,7 +39,7 @@ func NewScheduler(ctx context.Context) *Scheduler {
// Shutdonw gracefully shuts down the Scheduler.
func (s *Scheduler) Shutdown() {
- ctx, cancel := context.WithTimeout(s.Cron.Stop(), 30*time.Second) //nolint:staticcheck
+ ctx, cancel := context.WithTimeout(s.Cron.Stop(), 30*time.Second)
defer func() { cancel() }()
<-ctx.Done()
}