fix log; we want to log time when we succeed!

This commit is contained in:
vyzo 2020-09-17 17:33:52 +03:00
parent fb605f6d7f
commit d7948fcbcd

View File

@ -1593,7 +1593,7 @@ func (syncer *Syncer) fetchMessages(ctx context.Context, headers []*types.TipSet
}
wg.Wait()
if batchErr != nil {
if batchErr == nil {
dt := build.Clock.Since(start)
log.Infof("fetching messages for %d tipsets at %d done; took %s", batchSize, startOffset, dt)
}