Commit 86f69fc8 authored by vicotor's avatar vicotor

fix bug

parent 85436afa
......@@ -46,6 +46,9 @@ func (n *NodeManagerService) DispatchTask(ctx context.Context, request *omanager
}
workerAddr := request.Miner
worker := n.node.wm.GetWorkerByAddr(workerAddr)
if worker == nil {
return nil, errors.New("worker not found")
}
dtask := &dispatchTask{
task: request.TaskData,
errCh: make(chan error, 1),
......
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