diff --git a/go.mod b/go.mod index 77aa407581..966076f01f 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.17 require ( github.com/benbjohnson/clock v1.3.0 + github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c github.com/flynn/noise v1.0.0 github.com/gogo/protobuf v1.3.2 github.com/golang/mock v1.6.0 @@ -23,7 +24,6 @@ require ( github.com/libp2p/go-libp2p-core v0.15.1 github.com/libp2p/go-libp2p-nat v0.1.0 github.com/libp2p/go-libp2p-peerstore v0.6.0 - github.com/libp2p/go-libp2p-pnet v0.2.0 github.com/libp2p/go-libp2p-resource-manager v0.2.1 github.com/libp2p/go-libp2p-testing v0.9.2 github.com/libp2p/go-libp2p-tls v0.4.1 @@ -63,7 +63,6 @@ require ( github.com/coreos/go-semver v0.3.0 // indirect github.com/coreos/go-systemd/v22 v22.3.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect github.com/docker/go-units v0.4.0 // indirect github.com/elastic/gosigar v0.14.2 // indirect github.com/francoispqt/gojay v1.2.13 // indirect diff --git a/p2p/net/upgrader/upgrader.go b/p2p/net/upgrader/upgrader.go index 3ea71bf777..4f8e712254 100644 --- a/p2p/net/upgrader/upgrader.go +++ b/p2p/net/upgrader/upgrader.go @@ -7,6 +7,8 @@ import ( "net" "time" + "github.com/libp2p/go-libp2p/p2p/net/pnet" + "github.com/libp2p/go-libp2p-core/connmgr" "github.com/libp2p/go-libp2p-core/network" "github.com/libp2p/go-libp2p-core/peer" @@ -14,7 +16,6 @@ import ( "github.com/libp2p/go-libp2p-core/sec" "github.com/libp2p/go-libp2p-core/transport" - pnet "github.com/libp2p/go-libp2p-pnet" manet "github.com/multiformats/go-multiaddr/net" )