fix log; we want to log time when we succeed!
This commit is contained in:
parent
fb605f6d7f
commit
d7948fcbcd
@ -1593,7 +1593,7 @@ func (syncer *Syncer) fetchMessages(ctx context.Context, headers []*types.TipSet
|
|||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
if batchErr != nil {
|
if batchErr == nil {
|
||||||
dt := build.Clock.Since(start)
|
dt := build.Clock.Since(start)
|
||||||
log.Infof("fetching messages for %d tipsets at %d done; took %s", batchSize, startOffset, dt)
|
log.Infof("fetching messages for %d tipsets at %d done; took %s", batchSize, startOffset, dt)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user