Typos
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
This commit is contained in:
parent
33dfcf2663
commit
1e5e69ec9d
4
extern/sector-storage/sched_post.go
vendored
4
extern/sector-storage/sched_post.go
vendored
@ -81,7 +81,7 @@ func (ps *poStScheduler) Schedule(ctx context.Context, primary bool, spt abi.Reg
|
|||||||
defer ps.lk.Unlock()
|
defer ps.lk.Unlock()
|
||||||
|
|
||||||
if len(ps.workers) == 0 {
|
if len(ps.workers) == 0 {
|
||||||
return xerrors.Errorf("cant find %s post worker", ps.postType)
|
return xerrors.Errorf("can't find %s post worker", ps.postType)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get workers by resource
|
// Get workers by resource
|
||||||
@ -120,7 +120,7 @@ type candidateWorker struct {
|
|||||||
|
|
||||||
func (ps *poStScheduler) readyWorkers(spt abi.RegisteredSealProof) (bool, []candidateWorker) {
|
func (ps *poStScheduler) readyWorkers(spt abi.RegisteredSealProof) (bool, []candidateWorker) {
|
||||||
var accepts []candidateWorker
|
var accepts []candidateWorker
|
||||||
//if the gpus of the worker are insufficient or its disable, it cannot be scheduled
|
//if the gpus of the worker are insufficient or it's disabled, it cannot be scheduled
|
||||||
for wid, wr := range ps.workers {
|
for wid, wr := range ps.workers {
|
||||||
needRes := wr.info.Resources.ResourceSpec(spt, ps.postType)
|
needRes := wr.info.Resources.ResourceSpec(spt, ps.postType)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user