clean up return code
This commit is contained in:
parent
d7948fcbcd
commit
2946561dec
@ -1593,11 +1593,12 @@ func (syncer *Syncer) fetchMessages(ctx context.Context, headers []*types.TipSet
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
if batchErr == nil {
|
||||
dt := build.Clock.Since(start)
|
||||
log.Infof("fetching messages for %d tipsets at %d done; took %s", batchSize, startOffset, dt)
|
||||
if batchErr != nil {
|
||||
return nil, batchErr
|
||||
}
|
||||
|
||||
log.Infof("fetching messages for %d tipsets at %d done; took %s", batchSize, startOffset, build.Clock.Since(start))
|
||||
|
||||
return batch, batchErr
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user