fix: storage: don't panic in getCommitCutoff when precommit is not found
This commit is contained in:
parent
0c91b0dc10
commit
ca1ff19541
@ -573,6 +573,9 @@ func (b *CommitBatcher) getCommitCutoff(si SectorInfo) (time.Time, error) {
|
|||||||
log.Errorf("getting precommit info: %s", err)
|
log.Errorf("getting precommit info: %s", err)
|
||||||
return time.Now(), err
|
return time.Now(), err
|
||||||
}
|
}
|
||||||
|
if pci == nil {
|
||||||
|
return time.Now(), xerrors.Errorf("precommit info not found")
|
||||||
|
}
|
||||||
av, err := actors.VersionForNetwork(nv)
|
av, err := actors.VersionForNetwork(nv)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("unsupported network vrsion: %s", err)
|
log.Errorf("unsupported network vrsion: %s", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user