Skip to content

Commit

Permalink
chore: update imports to use slices package (#3007)
Browse files Browse the repository at this point in the history
Rather than the older /x/exp/slices package
  • Loading branch information
MarcoPolo authored Oct 18, 2024
1 parent b1a0919 commit aebc4eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion p2p/net/swarm/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ 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"
"github.com/libp2p/go-libp2p/core/network"
"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"
Expand Down
2 changes: 1 addition & 1 deletion p2p/protocol/autonatv2/autonat.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"slices"
"sync"
"time"

Expand All @@ -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 (
Expand Down
3 changes: 1 addition & 2 deletions p2p/protocol/identify/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit aebc4eb

Please sign in to comment.