From 6f875981cd28a76170695dc8b90e1f3f9f991b83 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 27 Apr 2022 12:04:42 +0200 Subject: [PATCH] switch from github.com/libp2p/go-libp2p-pnet to p2p/net/pnet --- go.mod | 3 +-- p2p/net/upgrader/upgrader.go | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 77aa4075..966076f0 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 3ea71bf7..4f8e7122 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" )