Skip to content

Commit

Permalink
leave concurrency to callee
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed Dec 21, 2022
1 parent e6e3db5 commit 3bcdeda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (s *ScheduleImpl) On(ctx context.Context, kind string, handler func(ctx con
return err
}

go handler(ctx, &Task{
handler(ctx, &Task{
ID: id,
Kind: kind,
Interval: time.Duration(taskData.Interval) * time.Millisecond,
Expand Down

0 comments on commit 3bcdeda

Please sign in to comment.