From 486a59087449e39ddb635755281ffd4ba7570426 Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Thu, 6 Aug 2020 09:07:02 -0700 Subject: [PATCH] Nits --- go.sum | 1 + syncer/syncer.go | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/go.sum b/go.sum index 9b116e1c..045abfa2 100644 --- a/go.sum +++ b/go.sum @@ -178,6 +178,7 @@ github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8 github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3 h1:njlZPzLwU639dk2kqnCPPv+wNjq7Xb6EfUxe/oX0/NM= github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= diff --git a/syncer/syncer.go b/syncer/syncer.go index c18fc9c0..54143cd7 100644 --- a/syncer/syncer.go +++ b/syncer/syncer.go @@ -310,7 +310,11 @@ func (s *Syncer) fetchChannelBlocks( // processBlocks is invoked whenever a new block is fetched. It attempts // to process as many blocks as possible. -func (s *Syncer) processBlocks(ctx context.Context, cache map[int64]*types.Block, endIndex int64) error { +func (s *Syncer) processBlocks( + ctx context.Context, + cache map[int64]*types.Block, + endIndex int64, +) error { // We need to determine if we are in a reorg // so that we can force blocks to be fetched // if they don't exist in the cache.