switch from github.com/libp2p/go-libp2p-pnet to p2p/net/pnet

This commit is contained in:
Marten Seemann 2022-04-27 12:04:42 +02:00
parent a225be04d9
commit 6f875981cd
2 changed files with 3 additions and 3 deletions

3
go.mod
View File

@ -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

View File

@ -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"
)