chore: fix function name in comment

This commit is contained in:
cangqiaoyuzhuo
2024-10-28 22:24:45 +08:00
committed by GitHub
parent 1840b343b2
commit 1b74dc8afd

View File

@@ -137,7 +137,7 @@ func (t *timer) AddTaskByJobWithSeconds(cronName string, spec string, job interf
return id, err
}
// FindTask 获取对应cronName的cron 可能会为空
// FindCron 获取对应cronName的cron 可能会为空
func (t *timer) FindCron(cronName string) (*taskManager, bool) {
t.Lock()
defer t.Unlock()