Skip to content

Commit

Permalink
fix: result bool in sleeper task
Browse files Browse the repository at this point in the history
  • Loading branch information
bukata-sa committed Aug 14, 2024
1 parent f2bf9fa commit 00a6a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/sleeper_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func (s *SleeperTask) Stop() error {
})
}

func (s *SleeperTask) WakeUpIfStarted() {
s.IfStarted(func() {
func (s *SleeperTask) WakeUpIfStarted() bool {
return s.IfStarted(func() {
select {
case s.chQueue <- struct{}{}:
default:
Expand Down

0 comments on commit 00a6a6b

Please sign in to comment.