Commit 4827c9fc authored by vicotor's avatar vicotor

fix bug

parent 85383c5e
......@@ -46,6 +46,17 @@ func (wm *WorkerManager) computeTaskResult(worker *Worker, task *odysseus.TaskCo
wm.node.PostResult(receipt)
go wm.doCallback(task.TaskCallback, taskResponse)
return nil, nil
} else {
taskResponse := &odysseus.TaskResponse{
TaskId: task.TaskId,
TaskResultHeader: result.TaskResultHeader,
TaskResultBody: result.TaskResultBody,
TaskUid: task.TaskUid,
TaskFee: task.TaskFee,
TaskIsSucceed: true,
TaskError: "",
}
go wm.doCallback(task.TaskCallback, taskResponse)
}
//{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment