Skip to content

Commit

Permalink
clean up return code
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Sep 17, 2020
1 parent 6851c2d commit 15f4783
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chain/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 15f4783

Please sign in to comment.