From cf0486dbd38c1ddf998f81dad13f51afd651f388 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Fri, 25 Jan 2019 11:22:01 -0800 Subject: [PATCH] More goimports Recent version of goimports committed a few days ago now adds an explicit package name tag for imports whose last path component differ from the package name (see golang/go#28428 and https://go-review.googlesource.com/c/tools/+/152000). --- internal/beaconchain/libs/beaconchain.go | 2 +- p2p/host.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/beaconchain/libs/beaconchain.go b/internal/beaconchain/libs/beaconchain.go index 0e09a81bee..ec3437b198 100644 --- a/internal/beaconchain/libs/beaconchain.go +++ b/internal/beaconchain/libs/beaconchain.go @@ -12,7 +12,7 @@ import ( proto_identity "github.com/harmony-one/harmony/api/proto/identity" "github.com/harmony-one/harmony/api/proto/node" "github.com/harmony-one/harmony/crypto/pki" - "github.com/harmony-one/harmony/internal/beaconchain/rpc" + beaconchain "github.com/harmony-one/harmony/internal/beaconchain/rpc" "github.com/harmony-one/harmony/internal/utils" "github.com/harmony-one/harmony/p2p" "github.com/harmony-one/harmony/p2p/host" diff --git a/p2p/host.go b/p2p/host.go index 2a61d9c998..e19970c74c 100644 --- a/p2p/host.go +++ b/p2p/host.go @@ -1,6 +1,6 @@ package p2p -import "github.com/libp2p/go-libp2p-peer" +import peer "github.com/libp2p/go-libp2p-peer" // Host is the client + server in p2p network. type Host interface {