Skip to content

Commit

Permalink
fix AddTimer
Browse files Browse the repository at this point in the history
  • Loading branch information
LordCasser committed Dec 14, 2022
1 parent ada7067 commit 238686a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (c *Clock) Stop() {
}

// AddTimer 添加定时器 key为定时器唯一标识
func (c *Clock) AddTimer(delay time.Duration, key uuid.UUID, cb CallBack, data any) *string {
func (c *Clock) AddTimer(delay time.Duration, cb CallBack, data any) *string {
if delay < 0 {
return nil
}
Expand Down

0 comments on commit 238686a

Please sign in to comment.