use tmlibs

This commit is contained in:
Ethan Buchman 2017-04-21 17:53:22 -04:00
parent e8f33a4784
commit eaeb547938
17 changed files with 24 additions and 24 deletions

View File

@ -14,7 +14,7 @@ import (
"sync" "sync"
"time" "time"
. "github.com/tendermint/go-common" . "github.com/tendermint/tmlibs/common"
crypto "github.com/tendermint/go-crypto" crypto "github.com/tendermint/go-crypto"
) )

View File

@ -10,9 +10,9 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
cmn "github.com/tendermint/go-common"
flow "github.com/tendermint/go-flowrate/flowrate"
wire "github.com/tendermint/go-wire" wire "github.com/tendermint/go-wire"
cmn "github.com/tendermint/tmlibs/common"
flow "github.com/tendermint/tmlibs/flowrate"
) )
const ( const (

8
glide.lock generated
View File

@ -22,19 +22,19 @@ imports:
subpackages: subpackages:
- edwards25519 - edwards25519
- extra25519 - extra25519
- name: github.com/tendermint/go-common - name: github.com/tendermint/tmlibs/common
version: f9e3db037330c8a8d61d3966de8473eaf01154fa version: f9e3db037330c8a8d61d3966de8473eaf01154fa
- name: github.com/tendermint/go-config - name: github.com/tendermint/go-config
version: 620dcbbd7d587cf3599dedbf329b64311b0c307a version: 620dcbbd7d587cf3599dedbf329b64311b0c307a
- name: github.com/tendermint/go-crypto - name: github.com/tendermint/go-crypto
version: 0ca2c6fdb0706001ca4c4b9b80c9f428e8cf39da version: 0ca2c6fdb0706001ca4c4b9b80c9f428e8cf39da
- name: github.com/tendermint/go-data - name: github.com/tendermint/go-wire/data
version: e7fcc6d081ec8518912fcdc103188275f83a3ee5 version: e7fcc6d081ec8518912fcdc103188275f83a3ee5
- name: github.com/tendermint/go-flowrate - name: github.com/tendermint/tmlibs/flowrate
version: a20c98e61957faa93b4014fbd902f20ab9317a6a version: a20c98e61957faa93b4014fbd902f20ab9317a6a
subpackages: subpackages:
- flowrate - flowrate
- name: github.com/tendermint/go-logger - name: github.com/tendermint/tmlibs/logger
version: cefb3a45c0bf3c493a04e9bcd9b1540528be59f2 version: cefb3a45c0bf3c493a04e9bcd9b1540528be59f2
- name: github.com/tendermint/go-wire - name: github.com/tendermint/go-wire
version: c1c9a57ab8038448ddea1714c0698f8051e5748c version: c1c9a57ab8038448ddea1714c0698f8051e5748c

View File

@ -1,17 +1,17 @@
package: github.com/tendermint/go-p2p package: github.com/tendermint/go-p2p
import: import:
- package: github.com/tendermint/go-common - package: github.com/tendermint/tmlibs/common
version: develop version: develop
- package: github.com/tendermint/go-config - package: github.com/tendermint/go-config
version: develop version: develop
- package: github.com/tendermint/go-crypto - package: github.com/tendermint/go-crypto
version: develop version: develop
- package: github.com/tendermint/go-data - package: github.com/tendermint/go-wire/data
version: develop version: develop
- package: github.com/tendermint/go-flowrate - package: github.com/tendermint/tmlibs/flowrate
subpackages: subpackages:
- flowrate - flowrate
- package: github.com/tendermint/go-logger - package: github.com/tendermint/tmlibs/logger
version: develop version: develop
- package: github.com/tendermint/go-wire - package: github.com/tendermint/go-wire
version: develop version: develop

View File

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"time" "time"
. "github.com/tendermint/go-common" . "github.com/tendermint/tmlibs/common"
"github.com/tendermint/go-p2p/upnp" "github.com/tendermint/go-p2p/upnp"
) )

2
log.go
View File

@ -1,7 +1,7 @@
package p2p package p2p
import ( import (
"github.com/tendermint/go-logger" "github.com/tendermint/tmlibs/logger"
) )
var log = logger.New("module", "p2p") var log = logger.New("module", "p2p")

View File

@ -11,7 +11,7 @@ import (
"strconv" "strconv"
"time" "time"
cmn "github.com/tendermint/go-common" cmn "github.com/tendermint/tmlibs/common"
) )
// NetAddress defines information about a peer on the network // NetAddress defines information about a peer on the network

View File

@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/pkg/errors" "github.com/pkg/errors"
cmn "github.com/tendermint/go-common" cmn "github.com/tendermint/tmlibs/common"
crypto "github.com/tendermint/go-crypto" crypto "github.com/tendermint/go-crypto"
wire "github.com/tendermint/go-wire" wire "github.com/tendermint/go-wire"
) )

View File

@ -4,7 +4,7 @@ import (
"math/rand" "math/rand"
"testing" "testing"
. "github.com/tendermint/go-common" . "github.com/tendermint/tmlibs/common"
) )
// Returns an empty dummy peer // Returns an empty dummy peer

View File

@ -7,7 +7,7 @@ import (
"reflect" "reflect"
"time" "time"
cmn "github.com/tendermint/go-common" cmn "github.com/tendermint/tmlibs/common"
wire "github.com/tendermint/go-wire" wire "github.com/tendermint/go-wire"
) )

View File

@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
cmn "github.com/tendermint/go-common" cmn "github.com/tendermint/tmlibs/common"
wire "github.com/tendermint/go-wire" wire "github.com/tendermint/go-wire"
) )

View File

@ -20,7 +20,7 @@ import (
"golang.org/x/crypto/nacl/secretbox" "golang.org/x/crypto/nacl/secretbox"
"golang.org/x/crypto/ripemd160" "golang.org/x/crypto/ripemd160"
. "github.com/tendermint/go-common" . "github.com/tendermint/tmlibs/common"
"github.com/tendermint/go-crypto" "github.com/tendermint/go-crypto"
"github.com/tendermint/go-wire" "github.com/tendermint/go-wire"
) )

View File

@ -5,7 +5,7 @@ import (
"io" "io"
"testing" "testing"
. "github.com/tendermint/go-common" . "github.com/tendermint/tmlibs/common"
"github.com/tendermint/go-crypto" "github.com/tendermint/go-crypto"
) )

View File

@ -7,7 +7,7 @@ import (
"net" "net"
"time" "time"
. "github.com/tendermint/go-common" . "github.com/tendermint/tmlibs/common"
cfg "github.com/tendermint/go-config" cfg "github.com/tendermint/go-config"
crypto "github.com/tendermint/go-crypto" crypto "github.com/tendermint/go-crypto"
"github.com/tendermint/log15" "github.com/tendermint/log15"

View File

@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
. "github.com/tendermint/go-common" . "github.com/tendermint/tmlibs/common"
cfg "github.com/tendermint/go-config" cfg "github.com/tendermint/go-config"
crypto "github.com/tendermint/go-crypto" crypto "github.com/tendermint/go-crypto"
wire "github.com/tendermint/go-wire" wire "github.com/tendermint/go-wire"

View File

@ -1,7 +1,7 @@
package upnp package upnp
import ( import (
"github.com/tendermint/go-logger" "github.com/tendermint/tmlibs/logger"
) )
var log = logger.New("module", "upnp") var log = logger.New("module", "upnp")

View File

@ -6,7 +6,7 @@ import (
"net" "net"
"time" "time"
. "github.com/tendermint/go-common" . "github.com/tendermint/tmlibs/common"
) )
type UPNPCapabilities struct { type UPNPCapabilities struct {