fix: 应该调用filepath.Ext的地方调用了path.Ext (#1696)

* fix: 应该调用filepath.Ext的地方调用了path.Ext

* fix: typo
This commit is contained in:
ShuBo6
2024-04-03 16:25:09 +08:00
committed by GitHub
parent c226a9476f
commit 53e9f931f2
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -169,19 +169,19 @@ func (t *timer) FindCronList() map[string]*taskManager {
}
// StartCron 开始任务
func (t *timer) StartCron(cromName string) {
func (t *timer) StartCron(cronName string) {
t.Lock()
defer t.Unlock()
if v, ok := t.cronList[cromName]; ok {
if v, ok := t.cronList[cronName]; ok {
v.corn.Start()
}
}
// StopCron 停止任务
func (t *timer) StopCron(cromName string) {
func (t *timer) StopCron(cronName string) {
t.Lock()
defer t.Unlock()
if v, ok := t.cronList[cromName]; ok {
if v, ok := t.cronList[cronName]; ok {
v.corn.Stop()
}
}