sched: use correct resource table in assignReadyWork

This commit is contained in:
Łukasz Magiera 2022-05-25 16:32:00 +02:00
parent 083c7421ce
commit c47e1bd483

View File

@ -413,7 +413,7 @@ assignLoop:
continue
}
needRes := storiface.ResourceTable[todo.taskType][todo.sector.ProofType]
needRes := worker.info.Resources.ResourceSpec(todo.sector.ProofType, todo.taskType)
if worker.active.canHandleRequest(todo.SealTask(), needRes, sw.wid, "startPreparing", worker.info) {
tidx = t
break