bug fix
This commit is contained in:
parent
74df3983a0
commit
a0cdb02875
@ -118,6 +118,7 @@ func (r *Remind) AddTask(taskStr, key string, msg []byte) (Task, error) {
|
|||||||
Key: key,
|
Key: key,
|
||||||
Msg: msg,
|
Msg: msg,
|
||||||
timer: &tmr,
|
timer: &tmr,
|
||||||
|
Limit: int64(tmr.RunCountLimit()),
|
||||||
}
|
}
|
||||||
rmt.timer.AddTask(func() {
|
rmt.timer.AddTask(func() {
|
||||||
r.callbackFn(rmt)
|
r.callbackFn(rmt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user