diff --git a/p2p/net/swarm/swarm.go b/p2p/net/swarm/swarm.go index ab0a28a315..ef1fc2a2b3 100644 --- a/p2p/net/swarm/swarm.go +++ b/p2p/net/swarm/swarm.go @@ -10,6 +10,8 @@ import ( "sync/atomic" "time" + "slices" + "github.com/libp2p/go-libp2p/core/connmgr" "github.com/libp2p/go-libp2p/core/event" "github.com/libp2p/go-libp2p/core/metrics" @@ -17,7 +19,6 @@ import ( "github.com/libp2p/go-libp2p/core/peer" "github.com/libp2p/go-libp2p/core/peerstore" "github.com/libp2p/go-libp2p/core/transport" - "golang.org/x/exp/slices" logging "github.com/ipfs/go-log/v2" ma "github.com/multiformats/go-multiaddr" diff --git a/p2p/protocol/autonatv2/autonat.go b/p2p/protocol/autonatv2/autonat.go index 888a95b7ae..de933d73c8 100644 --- a/p2p/protocol/autonatv2/autonat.go +++ b/p2p/protocol/autonatv2/autonat.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "slices" "sync" "time" @@ -16,7 +17,6 @@ import ( ma "github.com/multiformats/go-multiaddr" manet "github.com/multiformats/go-multiaddr/net" "golang.org/x/exp/rand" - "golang.org/x/exp/slices" ) const ( diff --git a/p2p/protocol/identify/id.go b/p2p/protocol/identify/id.go index acaa40aca3..1733a4166c 100644 --- a/p2p/protocol/identify/id.go +++ b/p2p/protocol/identify/id.go @@ -6,11 +6,10 @@ import ( "errors" "fmt" "io" + "slices" "sync" "time" - "golang.org/x/exp/slices" - "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/event" "github.com/libp2p/go-libp2p/core/host"