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

Commit e068fbb

Browse files
use the renamed interfaces
1 parent 14ae142 commit e068fbb

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

conn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type transportConn struct {
1313
network.ConnMultiaddrs
1414
network.ConnSecurity
1515
transport transport.Transport
16-
scope network.ConnectionScope
16+
scope network.ConnectionManagementScope
1717
stat network.ConnStats
1818
}
1919

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.16
55
require (
66
github.com/ipfs/go-log/v2 v2.3.0
77
github.com/jbenet/go-temp-err-catcher v0.1.0
8-
github.com/libp2p/go-libp2p-core v0.13.1-0.20211222091732-aeb9233f0e8b
8+
github.com/libp2p/go-libp2p-core v0.13.1-0.20211230092045-caacd9659af8
99
github.com/libp2p/go-libp2p-mplex v0.4.1
1010
github.com/libp2p/go-libp2p-pnet v0.2.0
1111
github.com/multiformats/go-multiaddr v0.3.3

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ github.com/libp2p/go-flow-metrics v0.0.3/go.mod h1:HeoSNUrOJVK1jEpDqVEiUOIXqhbnS
7575
github.com/libp2p/go-libp2p-core v0.3.0/go.mod h1:ACp3DmS3/N64c2jDzcV429ukDpicbL6+TrrxANBjPGw=
7676
github.com/libp2p/go-libp2p-core v0.5.0/go.mod h1:49XGI+kc38oGVwqSBhDEwytaAxgZasHhFfQKibzTls0=
7777
github.com/libp2p/go-libp2p-core v0.8.0/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8=
78-
github.com/libp2p/go-libp2p-core v0.13.1-0.20211222091732-aeb9233f0e8b h1:9MisJJGOKshOjznYauNzIW7ih8/mez4NzT1XerqmFrI=
79-
github.com/libp2p/go-libp2p-core v0.13.1-0.20211222091732-aeb9233f0e8b/go.mod h1:ECdxehoYosLYHgDDFa2N4yE8Y7aQRAMf0sX9mf2sbGg=
78+
github.com/libp2p/go-libp2p-core v0.13.1-0.20211230092045-caacd9659af8 h1:YMGNLo9extN6iwBCaLbkoEyw1qtCXbtPmSZLHbxaYuo=
79+
github.com/libp2p/go-libp2p-core v0.13.1-0.20211230092045-caacd9659af8/go.mod h1:ECdxehoYosLYHgDDFa2N4yE8Y7aQRAMf0sX9mf2sbGg=
8080
github.com/libp2p/go-libp2p-mplex v0.4.1 h1:/pyhkP1nLwjG3OM+VuaNJkQT/Pqq73WzB3aDN3Fx1sc=
8181
github.com/libp2p/go-libp2p-mplex v0.4.1/go.mod h1:cmy+3GfqfM1PceHTLL7zQzAAYaryDu6iPSC+CIb094g=
8282
github.com/libp2p/go-libp2p-pnet v0.2.0 h1:J6htxttBipJujEjz1y0a5+eYoiPcFHhSYHH6na5f0/k=

listener.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (l *listener) handleIncoming() {
9393
continue
9494
}
9595

96-
var connScope network.ConnectionScope
96+
var connScope network.ConnectionManagementScope
9797
if l.rcmgr != nil {
9898
var err error
9999
connScope, err = l.rcmgr.OpenConnection(network.DirInbound, true)

upgrader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (u *Upgrader) UpgradeInbound(ctx context.Context, t transport.Transport, ma
7676
}
7777

7878
// Upgrade upgrades the multiaddr/net connection into a full libp2p-transport connection.
79-
func (u *Upgrader) Upgrade(ctx context.Context, t transport.Transport, maconn manet.Conn, dir network.Direction, p peer.ID, connScope network.ConnectionScope) (transport.CapableConn, error) {
79+
func (u *Upgrader) Upgrade(ctx context.Context, t transport.Transport, maconn manet.Conn, dir network.Direction, p peer.ID, connScope network.ConnectionManagementScope) (transport.CapableConn, error) {
8080
if dir == network.DirOutbound && p == "" {
8181
return nil, ErrNilPeer
8282
}

0 commit comments

Comments
 (0)