fix curSealing out of MaxSealingSectors limit
This commit is contained in:
parent
e1be89b442
commit
3c50baaf5b
2
extern/storage-sealing/garbage.go
vendored
2
extern/storage-sealing/garbage.go
vendored
@ -38,7 +38,7 @@ func (m *Sealing) PledgeSector() error {
|
||||
}
|
||||
|
||||
if cfg.MaxSealingSectors > 0 {
|
||||
if m.stats.curSealing() > cfg.MaxSealingSectors {
|
||||
if m.stats.curSealing() >= cfg.MaxSealingSectors {
|
||||
return xerrors.Errorf("too many sectors sealing (curSealing: %d, max: %d)", m.stats.curSealing(), cfg.MaxSealingSectors)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user