More goimports

Apparently goimports does not handle anything after the first
third-party import group (whose name starts with a URL such as
github.com).
pull/321/head
Eugene Kim 6 years ago
parent 7f5b167849
commit 24fd9d67b8
  1. 4
      api/proto/node/pingpong.go
  2. 2
      cmd/client/txgen/main.go
  3. 1
      cmd/harmony.go
  4. 2
      consensus/consensus.go
  5. 2
      crypto/pki/utils_test.go
  6. 2
      internal/newnode/newnode.go
  7. 2
      internal/utils/utils.go
  8. 2
      node/node_handler.go
  9. 2
      p2p/p2p.go
  10. 2
      test/crypto/bls/main.go

@ -17,10 +17,6 @@ import (
"log"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/api/proto"
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/api/proto"
"github.com/harmony-one/harmony/p2p"
peer "github.com/libp2p/go-libp2p-peer"

@ -20,8 +20,8 @@ import (
"github.com/harmony-one/harmony/node"
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/p2p/p2pimpl"
peerstore "github.com/libp2p/go-libp2p-peerstore"
multiaddr "github.com/multiformats/go-multiaddr"
)
var (

@ -20,6 +20,7 @@ import (
"github.com/harmony-one/harmony/p2p"
"github.com/harmony-one/harmony/p2p/p2pimpl"
peerstore "github.com/libp2p/go-libp2p-peerstore"
multiaddr "github.com/multiformats/go-multiaddr"
)
var (

@ -10,8 +10,6 @@ import (
"strconv"
"sync"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/rlp"

@ -8,8 +8,6 @@ import (
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/crypto"
"github.com/harmony-one/harmony/crypto"
)
func TestGetAddressFromPublicKey(test *testing.T) {

@ -7,8 +7,6 @@ import (
"strconv"
"time"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/ethereum/go-ethereum/log"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/api/proto/bcconn"

@ -12,8 +12,6 @@ import (
"strconv"
"sync"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/dedis/kyber"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/harmony/crypto"

@ -6,8 +6,6 @@ import (
"os"
"time"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/rlp"
"github.com/harmony-one/bls/ffi/go/bls"

@ -5,8 +5,8 @@ import (
"net"
"github.com/harmony-one/bls/ffi/go/bls"
peer "github.com/libp2p/go-libp2p-peer"
multiaddr "github.com/multiformats/go-multiaddr"
)
// StreamHandler handles incoming p2p message.

@ -9,8 +9,6 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/harmony-one/bls/ffi/go/bls"
)
func init() {

Loading…
Cancel
Save