From 6dfc40abc1c9152d3fb59061f2008b54b0b63872 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 17 Sep 2020 18:23:50 +0300 Subject: [PATCH] error is nil at end, so return batch, nil --- chain/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/sync.go b/chain/sync.go index 9c9714447..03ae1cd4f 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -1599,7 +1599,7 @@ func (syncer *Syncer) fetchMessages(ctx context.Context, headers []*types.TipSet log.Infof("fetching messages for %d tipsets at %d done; took %s", batchSize, startOffset, build.Clock.Since(start)) - return batch, batchErr + return batch, nil } func persistMessages(bs bstore.Blockstore, bst *exchange.CompactedMessages) error {