fix minor bug

This commit is contained in:
i-norden 2022-03-30 14:09:32 -05:00
parent 9e768dc2ba
commit de39842049
3 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import (
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
// "github.com/jmoiron/sqlx"
snapt "github.com/vulcanize/eth-pg-ipfs-state-snapshot/pkg/types" snapt "github.com/vulcanize/eth-pg-ipfs-state-snapshot/pkg/types"
) )

View File

@ -285,7 +285,7 @@ func (p *publisher) logNodeCounters() {
} }
func (p *publisher) printNodeCounters(msg string) { func (p *publisher) printNodeCounters(msg string) {
log.WithFields(log.Fields{ logrus.WithFields(logrus.Fields{
"runtime": time.Now().Sub(p.startTime).String(), "runtime": time.Now().Sub(p.startTime).String(),
"state nodes": atomic.LoadUint64(&p.stateNodeCounter), "state nodes": atomic.LoadUint64(&p.stateNodeCounter),
"storage nodes": atomic.LoadUint64(&p.storageNodeCounter), "storage nodes": atomic.LoadUint64(&p.storageNodeCounter),

View File

@ -1,7 +1,10 @@
package mock package mock
import "fmt" import (
import "github.com/golang/mock/gomock" "fmt"
"github.com/golang/mock/gomock"
)
type anyOfMatcher struct { type anyOfMatcher struct {
values []interface{} values []interface{}