Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
stop using the deprecated go-multiaddr-net
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Feb 25, 2021
1 parent a6f4445 commit 93980e5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ import (

ma "github.com/multiformats/go-multiaddr"
mafmt "github.com/multiformats/go-multiaddr-fmt"
manet "github.com/multiformats/go-multiaddr-net"
manet "github.com/multiformats/go-multiaddr/net"
tpt "github.com/libp2p/go-libp2p-core/transport"
peer "github.com/libp2p/go-libp2p-core/peer"
)
Expand Down Expand Up @@ -161,13 +161,13 @@ MIT
The last gx published version of this module was: 0.1.28: QmeqC5shQjEBRG9B8roZqQCJ9xb7Pq6AbWxJFMyLgqBBWh

[tpt]: https://godoc.org/github.com/libp2p/go-libp2p-core/transport
[manet]: https://github.com/multiformats/go-multiaddr-net
[manet]: https://github.com/multiformats/go-multiaddr/
[ss]: https://godoc.org/github.com/libp2p/go-libp2p-core/sec
[smux]: https://godoc.org/github.com/libp2p/go-libp2p-core/mux
[pnet]: https://godoc.org/github.com/libp2p/go-libp2p-core/pnet
[manet-conn]: https://godoc.org/github.com/multiformats/go-multiaddr-net#Conn
[manet-listener]: https://godoc.org/github.com/multiformats/go-multiaddr-net#Listener
[maddr-filter]: https://github.com/libp2p/go-maddr-filter
[manet-conn]: https://godoc.org/github.com/multiformats/go-multiaddr/net#Conn
[manet-listener]: https://godoc.org/github.com/multiformats/go-multiaddr/net#Listener
[maddr-filter]: https://github.com/multiformats/go-multiaddr
[docs-transport]: https://docs.libp2p.io/concepts/transport
[multiaddr]: https://github.com/multiformats/multiaddr
[go-libp2p]: https://github.com/lib2p2/go-libp2p
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ require (
github.com/libp2p/go-libp2p-mplex v0.4.1
github.com/libp2p/go-libp2p-pnet v0.2.0
github.com/multiformats/go-multiaddr v0.3.1
github.com/multiformats/go-multiaddr-net v0.2.0
github.com/stretchr/testify v1.4.0
)
3 changes: 1 addition & 2 deletions listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import (
"sync"

"github.com/libp2p/go-libp2p-core/transport"

logging "github.com/ipfs/go-log"
tec "github.com/jbenet/go-temp-err-catcher"
manet "github.com/multiformats/go-multiaddr-net"
manet "github.com/multiformats/go-multiaddr/net"
)

var log = logging.Logger("stream-upgrader")
Expand Down
3 changes: 1 addition & 2 deletions listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import (
"github.com/libp2p/go-libp2p-core/transport"

ma "github.com/multiformats/go-multiaddr"
manet "github.com/multiformats/go-multiaddr-net"

manet "github.com/multiformats/go-multiaddr/net"
st "github.com/libp2p/go-libp2p-transport-upgrader"

"github.com/stretchr/testify/require"
Expand Down
7 changes: 3 additions & 4 deletions upgrader.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ import (
"context"
"errors"
"fmt"
"github.com/libp2p/go-libp2p-core/network"
"net"


"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/connmgr"
"github.com/libp2p/go-libp2p-core/mux"
"github.com/libp2p/go-libp2p-core/peer"
ipnet "github.com/libp2p/go-libp2p-core/pnet"
"github.com/libp2p/go-libp2p-core/sec"
"github.com/libp2p/go-libp2p-core/transport"
"github.com/libp2p/go-libp2p-pnet"

manet "github.com/multiformats/go-multiaddr-net"
manet "github.com/multiformats/go-multiaddr/net"
)

// ErrNilPeer is returned when attempting to upgrade an outbound connection
Expand Down
6 changes: 3 additions & 3 deletions upgrader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import (

mplex "github.com/libp2p/go-libp2p-mplex"
ma "github.com/multiformats/go-multiaddr"
manet "github.com/multiformats/go-multiaddr-net"

"github.com/stretchr/testify/require"
manet "github.com/multiformats/go-multiaddr/net"

st "github.com/libp2p/go-libp2p-transport-upgrader"

"github.com/stretchr/testify/require"
)

var (
Expand Down

0 comments on commit 93980e5

Please sign in to comment.