chore: fix function name in comment
This commit is contained in:
parent
1840b343b2
commit
1b74dc8afd
|
@ -137,7 +137,7 @@ func (t *timer) AddTaskByJobWithSeconds(cronName string, spec string, job interf
|
||||||
return id, err
|
return id, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// FindTask 获取对应cronName的cron 可能会为空
|
// FindCron 获取对应cronName的cron 可能会为空
|
||||||
func (t *timer) FindCron(cronName string) (*taskManager, bool) {
|
func (t *timer) FindCron(cronName string) (*taskManager, bool) {
|
||||||
t.Lock()
|
t.Lock()
|
||||||
defer t.Unlock()
|
defer t.Unlock()
|
||||||
|
|
Loading…
Reference in New Issue