This commit is contained in:
兔子 2023-05-18 23:55:37 +08:00
parent 74df3983a0
commit a0cdb02875

View File

@ -118,6 +118,7 @@ func (r *Remind) AddTask(taskStr, key string, msg []byte) (Task, error) {
Key: key,
Msg: msg,
timer: &tmr,
Limit: int64(tmr.RunCountLimit()),
}
rmt.timer.AddTask(func() {
r.callbackFn(rmt)