From d7948fcbcd687961f746d88ed55a2afc13024aeb Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 17 Sep 2020 17:33:52 +0300 Subject: [PATCH] fix log; we want to log time when we succeed! --- chain/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/sync.go b/chain/sync.go index 95c2e2e84..d09ba84de 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -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) }