From de39842049b864142c973cf2241b003455e882a9 Mon Sep 17 00:00:00 2001 From: i-norden Date: Wed, 30 Mar 2022 14:09:32 -0500 Subject: [PATCH] fix minor bug --- fixture/service.go | 1 - pkg/snapshot/file/publisher.go | 2 +- pkg/snapshot/mock/util.go | 7 +++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fixture/service.go b/fixture/service.go index 8448d84..2b7b05e 100644 --- a/fixture/service.go +++ b/fixture/service.go @@ -5,7 +5,6 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" - // "github.com/jmoiron/sqlx" snapt "github.com/vulcanize/eth-pg-ipfs-state-snapshot/pkg/types" ) diff --git a/pkg/snapshot/file/publisher.go b/pkg/snapshot/file/publisher.go index b1e09c0..8abc8be 100644 --- a/pkg/snapshot/file/publisher.go +++ b/pkg/snapshot/file/publisher.go @@ -285,7 +285,7 @@ func (p *publisher) logNodeCounters() { } func (p *publisher) printNodeCounters(msg string) { - log.WithFields(log.Fields{ + logrus.WithFields(logrus.Fields{ "runtime": time.Now().Sub(p.startTime).String(), "state nodes": atomic.LoadUint64(&p.stateNodeCounter), "storage nodes": atomic.LoadUint64(&p.storageNodeCounter), diff --git a/pkg/snapshot/mock/util.go b/pkg/snapshot/mock/util.go index 99106ed..e6f5430 100644 --- a/pkg/snapshot/mock/util.go +++ b/pkg/snapshot/mock/util.go @@ -1,7 +1,10 @@ package mock -import "fmt" -import "github.com/golang/mock/gomock" +import ( + "fmt" + + "github.com/golang/mock/gomock" +) type anyOfMatcher struct { values []interface{}