优化结构

This commit is contained in:
Yvan
2026-08-28 16:37:53 +08:00
parent 295ee5c49e
commit 6f9908d926
14 changed files with 56 additions and 58 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import (
"unicode/utf8"
taskbiz "kra/internal/biz/task"
platformtask "kra/pkg/task"
)
type TaskExecutor struct {
@@ -199,7 +200,7 @@ func (e *TaskExecutor) runMethod(ctx context.Context, task *taskbiz.TimedTask) e
if ctx == nil {
ctx = context.Background()
}
var method taskbiz.TaskMethodFunc
var method platformtask.MethodFunc
var ok bool
if e.methods != nil {
method, ok = e.methods.Lookup(task.MethodName)