sched: use correct resource table in assignReadyWork
This commit is contained in:
parent
083c7421ce
commit
c47e1bd483
2
extern/sector-storage/sched_worker.go
vendored
2
extern/sector-storage/sched_worker.go
vendored
@ -413,7 +413,7 @@ assignLoop:
|
|||||||
continue
|
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) {
|
if worker.active.canHandleRequest(todo.SealTask(), needRes, sw.wid, "startPreparing", worker.info) {
|
||||||
tidx = t
|
tidx = t
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user