Skip to content

Commit 54c15dc

Browse files
committed
fix: static check
1 parent bf3bf9e commit 54c15dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud/scheduler/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (s *Scheduler) WithCancel() (*Scheduler, CancelFunc) {
9999
// set timeout to scheduler
100100
func WithTimeout(timeout time.Duration) SchedulerOption {
101101
return func(s *Scheduler) {
102-
s, cancel := s.WithCancel()
102+
_, cancel := s.WithCancel()
103103
go time.AfterFunc(timeout, cancel)
104104
}
105105
}

0 commit comments

Comments
 (0)