This commit is contained in:
richboo111
2022-10-24 14:33:39 +08:00
parent 4c7cfe4fd7
commit c5efe709a6
16 changed files with 3 additions and 70 deletions

View File

@@ -684,7 +684,6 @@ func ScheduleTimerFuncOnce(name string, handler func(interface{}), timeStr strin
duration := nextTime.Sub(now) + 1*time.Second
globals.SugarLogger.Debugf("ScheduleTimerFuncOnce, func:%s, duration:%v", name, duration)
utils.AfterFuncWithRecover(duration, func() {
globals.SugarLogger.Debugf("ScheduleTimerFuncOnce func:%s", name)
handler(param)
})
}