mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-03 06:20:25 +08:00
refactor: code review
This commit is contained in:
@@ -224,7 +224,7 @@ func (m *machineCronJobAppImpl) addCronJob(mcj *entity.MachineCronJob) {
|
||||
}
|
||||
|
||||
scheduler.AddFunByKey(key, mcj.Cron, func() {
|
||||
go m.RunCronJob(key)
|
||||
m.RunCronJob(key)
|
||||
})
|
||||
}
|
||||
func (m *machineCronJobAppImpl) runCronJob0(mid uint64, cronJob *entity.MachineCronJob) {
|
||||
|
||||
Reference in New Issue
Block a user