From 3c7b2a8766ca31ceacc7cc03ad58f4de76f04e0f Mon Sep 17 00:00:00 2001 From: Diego Nava Date: Sun, 17 Jul 2022 22:56:10 +0200 Subject: [PATCH] fix go imports --- core/blockchain.go | 2 +- core/blockchain_impl.go | 7 +++---- internal/shardchain/shardchains.go | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 7300603d7..19f9f7123 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1,7 +1,6 @@ package core import ( - "github.com/harmony-one/harmony/internal/tikv/redis_helper" "math/big" "github.com/ethereum/go-ethereum/common" @@ -15,6 +14,7 @@ import ( "github.com/harmony-one/harmony/core/types" "github.com/harmony-one/harmony/core/vm" "github.com/harmony-one/harmony/internal/params" + "github.com/harmony-one/harmony/internal/tikv/redis_helper" "github.com/harmony-one/harmony/shard" "github.com/harmony-one/harmony/staking/slash" types2 "github.com/harmony-one/harmony/staking/types" diff --git a/core/blockchain_impl.go b/core/blockchain_impl.go index 56ae457dd..84ef26d83 100644 --- a/core/blockchain_impl.go +++ b/core/blockchain_impl.go @@ -31,10 +31,6 @@ import ( "sync/atomic" "time" - harmonyconfig "github.com/harmony-one/harmony/internal/configs/harmony" - "github.com/harmony-one/harmony/internal/tikv" - "github.com/harmony-one/harmony/internal/tikv/redis_helper" - "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/mclock" "github.com/ethereum/go-ethereum/common/prque" @@ -51,7 +47,10 @@ import ( "github.com/harmony-one/harmony/core/state" "github.com/harmony-one/harmony/core/types" "github.com/harmony-one/harmony/core/vm" + harmonyconfig "github.com/harmony-one/harmony/internal/configs/harmony" "github.com/harmony-one/harmony/internal/params" + "github.com/harmony-one/harmony/internal/tikv" + "github.com/harmony-one/harmony/internal/tikv/redis_helper" "github.com/harmony-one/harmony/internal/utils" "github.com/harmony-one/harmony/numeric" "github.com/harmony-one/harmony/shard" diff --git a/internal/shardchain/shardchains.go b/internal/shardchain/shardchains.go index 26cbc2373..9ad6f6cc8 100644 --- a/internal/shardchain/shardchains.go +++ b/internal/shardchain/shardchains.go @@ -54,7 +54,7 @@ type CollectionImpl struct { // dbInit is the shard chain initializer to use when the database returned by // the factory is brand new (empty). func NewCollection( - harmonyconfig *harmonyconfig.HarmonyConfig, + harmonyconfig *harmonyconfig.HarmonyConfig, dbFactory DBFactory, dbInit DBInitializer, engine engine.Engine, chainConfig *params.ChainConfig, ) *CollectionImpl {