From eaeb5479383fe6983c30bc9b10803ba279371036 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Fri, 21 Apr 2017 17:53:22 -0400 Subject: [PATCH] use tmlibs --- addrbook.go | 2 +- connection.go | 4 ++-- glide.lock | 8 ++++---- glide.yaml | 8 ++++---- listener.go | 2 +- log.go | 2 +- netaddress.go | 2 +- peer.go | 2 +- peer_set_test.go | 2 +- pex_reactor.go | 2 +- pex_reactor_test.go | 2 +- secret_connection.go | 2 +- secret_connection_test.go | 2 +- switch.go | 2 +- switch_test.go | 2 +- upnp/log.go | 2 +- upnp/probe.go | 2 +- 17 files changed, 24 insertions(+), 24 deletions(-) diff --git a/addrbook.go b/addrbook.go index 8a1698f4..e68cc7b3 100644 --- a/addrbook.go +++ b/addrbook.go @@ -14,7 +14,7 @@ import ( "sync" "time" - . "github.com/tendermint/go-common" + . "github.com/tendermint/tmlibs/common" crypto "github.com/tendermint/go-crypto" ) diff --git a/connection.go b/connection.go index a14fa5ee..629ab7b0 100644 --- a/connection.go +++ b/connection.go @@ -10,9 +10,9 @@ import ( "sync/atomic" "time" - cmn "github.com/tendermint/go-common" - flow "github.com/tendermint/go-flowrate/flowrate" wire "github.com/tendermint/go-wire" + cmn "github.com/tendermint/tmlibs/common" + flow "github.com/tendermint/tmlibs/flowrate" ) const ( diff --git a/glide.lock b/glide.lock index 71505ea0..5da4e623 100644 --- a/glide.lock +++ b/glide.lock @@ -22,19 +22,19 @@ imports: subpackages: - edwards25519 - extra25519 -- name: github.com/tendermint/go-common +- name: github.com/tendermint/tmlibs/common version: f9e3db037330c8a8d61d3966de8473eaf01154fa - name: github.com/tendermint/go-config version: 620dcbbd7d587cf3599dedbf329b64311b0c307a - name: github.com/tendermint/go-crypto version: 0ca2c6fdb0706001ca4c4b9b80c9f428e8cf39da -- name: github.com/tendermint/go-data +- name: github.com/tendermint/go-wire/data version: e7fcc6d081ec8518912fcdc103188275f83a3ee5 -- name: github.com/tendermint/go-flowrate +- name: github.com/tendermint/tmlibs/flowrate version: a20c98e61957faa93b4014fbd902f20ab9317a6a subpackages: - flowrate -- name: github.com/tendermint/go-logger +- name: github.com/tendermint/tmlibs/logger version: cefb3a45c0bf3c493a04e9bcd9b1540528be59f2 - name: github.com/tendermint/go-wire version: c1c9a57ab8038448ddea1714c0698f8051e5748c diff --git a/glide.yaml b/glide.yaml index e7edc80a..5bf7a015 100644 --- a/glide.yaml +++ b/glide.yaml @@ -1,17 +1,17 @@ package: github.com/tendermint/go-p2p import: -- package: github.com/tendermint/go-common +- package: github.com/tendermint/tmlibs/common version: develop - package: github.com/tendermint/go-config version: develop - package: github.com/tendermint/go-crypto version: develop -- package: github.com/tendermint/go-data +- package: github.com/tendermint/go-wire/data version: develop -- package: github.com/tendermint/go-flowrate +- package: github.com/tendermint/tmlibs/flowrate subpackages: - flowrate -- package: github.com/tendermint/go-logger +- package: github.com/tendermint/tmlibs/logger version: develop - package: github.com/tendermint/go-wire version: develop diff --git a/listener.go b/listener.go index 962c2b14..51beb5e2 100644 --- a/listener.go +++ b/listener.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - . "github.com/tendermint/go-common" + . "github.com/tendermint/tmlibs/common" "github.com/tendermint/go-p2p/upnp" ) diff --git a/log.go b/log.go index ac1ff22a..af320340 100644 --- a/log.go +++ b/log.go @@ -1,7 +1,7 @@ package p2p import ( - "github.com/tendermint/go-logger" + "github.com/tendermint/tmlibs/logger" ) var log = logger.New("module", "p2p") diff --git a/netaddress.go b/netaddress.go index 263ec903..09787481 100644 --- a/netaddress.go +++ b/netaddress.go @@ -11,7 +11,7 @@ import ( "strconv" "time" - cmn "github.com/tendermint/go-common" + cmn "github.com/tendermint/tmlibs/common" ) // NetAddress defines information about a peer on the network diff --git a/peer.go b/peer.go index 5461d7e8..355f4731 100644 --- a/peer.go +++ b/peer.go @@ -7,7 +7,7 @@ import ( "time" "github.com/pkg/errors" - cmn "github.com/tendermint/go-common" + cmn "github.com/tendermint/tmlibs/common" crypto "github.com/tendermint/go-crypto" wire "github.com/tendermint/go-wire" ) diff --git a/peer_set_test.go b/peer_set_test.go index ceb10eee..a17f9d65 100644 --- a/peer_set_test.go +++ b/peer_set_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - . "github.com/tendermint/go-common" + . "github.com/tendermint/tmlibs/common" ) // Returns an empty dummy peer diff --git a/pex_reactor.go b/pex_reactor.go index 4b612976..03a383c8 100644 --- a/pex_reactor.go +++ b/pex_reactor.go @@ -7,7 +7,7 @@ import ( "reflect" "time" - cmn "github.com/tendermint/go-common" + cmn "github.com/tendermint/tmlibs/common" wire "github.com/tendermint/go-wire" ) diff --git a/pex_reactor_test.go b/pex_reactor_test.go index 13f2fa20..aed6c758 100644 --- a/pex_reactor_test.go +++ b/pex_reactor_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - cmn "github.com/tendermint/go-common" + cmn "github.com/tendermint/tmlibs/common" wire "github.com/tendermint/go-wire" ) diff --git a/secret_connection.go b/secret_connection.go index be3e62a9..49535a40 100644 --- a/secret_connection.go +++ b/secret_connection.go @@ -20,7 +20,7 @@ import ( "golang.org/x/crypto/nacl/secretbox" "golang.org/x/crypto/ripemd160" - . "github.com/tendermint/go-common" + . "github.com/tendermint/tmlibs/common" "github.com/tendermint/go-crypto" "github.com/tendermint/go-wire" ) diff --git a/secret_connection_test.go b/secret_connection_test.go index 9bf1a7b1..58459e62 100644 --- a/secret_connection_test.go +++ b/secret_connection_test.go @@ -5,7 +5,7 @@ import ( "io" "testing" - . "github.com/tendermint/go-common" + . "github.com/tendermint/tmlibs/common" "github.com/tendermint/go-crypto" ) diff --git a/switch.go b/switch.go index 6835e0a4..3e3ab4f8 100644 --- a/switch.go +++ b/switch.go @@ -7,7 +7,7 @@ import ( "net" "time" - . "github.com/tendermint/go-common" + . "github.com/tendermint/tmlibs/common" cfg "github.com/tendermint/go-config" crypto "github.com/tendermint/go-crypto" "github.com/tendermint/log15" diff --git a/switch_test.go b/switch_test.go index a81bb4ac..1f1fe69f 100644 --- a/switch_test.go +++ b/switch_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - . "github.com/tendermint/go-common" + . "github.com/tendermint/tmlibs/common" cfg "github.com/tendermint/go-config" crypto "github.com/tendermint/go-crypto" wire "github.com/tendermint/go-wire" diff --git a/upnp/log.go b/upnp/log.go index edc5b498..45e44439 100644 --- a/upnp/log.go +++ b/upnp/log.go @@ -1,7 +1,7 @@ package upnp import ( - "github.com/tendermint/go-logger" + "github.com/tendermint/tmlibs/logger" ) var log = logger.New("module", "upnp") diff --git a/upnp/probe.go b/upnp/probe.go index 5ba9b237..5488de58 100644 --- a/upnp/probe.go +++ b/upnp/probe.go @@ -6,7 +6,7 @@ import ( "net" "time" - . "github.com/tendermint/go-common" + . "github.com/tendermint/tmlibs/common" ) type UPNPCapabilities struct {