优化任务定义及返回值

This commit is contained in:
2023-03-06 22:36:30 +08:00
parent 384a975cc7
commit a7b5da90c7
3 changed files with 3 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ func (d *dispatch) Run(ctx context.Context, cfg *Config) *Result {
TaskConfig: cfg,
Data: nil,
Err: nil,
Async: cfg.Async,
}
defer func() {
result.FinishTime = time.Now().UnixNano()