Skip to content

Commit 5f4cf9f

Browse files
remove mplex from the list of default muxers
1 parent 11e6345 commit 5f4cf9f

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

defaults.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"crypto/rand"
77

88
"github.com/libp2p/go-libp2p-core/crypto"
9-
mplex "github.com/libp2p/go-libp2p-mplex"
109
noise "github.com/libp2p/go-libp2p-noise"
1110
"github.com/libp2p/go-libp2p-peerstore/pstoremem"
1211
quic "github.com/libp2p/go-libp2p-quic-transport"
@@ -32,10 +31,7 @@ var DefaultSecurity = ChainOptions(
3231
//
3332
// Use this option when you want to *extend* the set of multiplexers used by
3433
// libp2p instead of replacing them.
35-
var DefaultMuxers = ChainOptions(
36-
Muxer("/yamux/1.0.0", yamux.DefaultTransport),
37-
Muxer("/mplex/6.7.0", mplex.DefaultTransport),
38-
)
34+
var DefaultMuxers = Muxer("/yamux/1.0.0", yamux.DefaultTransport)
3935

4036
// DefaultTransports are the default libp2p transports.
4137
//

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/libp2p/go-libp2p-blankhost v0.3.0
2525
github.com/libp2p/go-libp2p-circuit v0.6.0
2626
github.com/libp2p/go-libp2p-core v0.14.0
27-
github.com/libp2p/go-libp2p-mplex v0.6.0
27+
github.com/libp2p/go-libp2p-mplex v0.5.0
2828
github.com/libp2p/go-libp2p-nat v0.1.0
2929
github.com/libp2p/go-libp2p-noise v0.3.0
3030
github.com/libp2p/go-libp2p-peerstore v0.6.0

go.sum

+2-4
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,8 @@ github.com/libp2p/go-libp2p-core v0.12.0/go.mod h1:ECdxehoYosLYHgDDFa2N4yE8Y7aQR
421421
github.com/libp2p/go-libp2p-core v0.14.0 h1:0kYSgiK/D7Eo28GTuRXo5YHsWwAisVpFCqCVPUd/vJs=
422422
github.com/libp2p/go-libp2p-core v0.14.0/go.mod h1:tLasfcVdTXnixsLB0QYaT1syJOhsbrhG7q6pGrHtBg8=
423423
github.com/libp2p/go-libp2p-mplex v0.4.1/go.mod h1:cmy+3GfqfM1PceHTLL7zQzAAYaryDu6iPSC+CIb094g=
424+
github.com/libp2p/go-libp2p-mplex v0.5.0 h1:vt3k4E4HSND9XH4Z8rUpacPJFSAgLOv6HDvG8W9Ks9E=
424425
github.com/libp2p/go-libp2p-mplex v0.5.0/go.mod h1:eLImPJLkj3iG5t5lq68w3Vm5NAQ5BcKwrrb2VmOYb3M=
425-
github.com/libp2p/go-libp2p-mplex v0.6.0 h1:5ubK4/vLE2JkogKlJ2JLeXcSfA6qY6mE2HMJV9ve/Sk=
426-
github.com/libp2p/go-libp2p-mplex v0.6.0/go.mod h1:i3usuPrBbh9FD2fLZjGpotyNkwr42KStYZQY7BeTiu4=
427426
github.com/libp2p/go-libp2p-nat v0.1.0 h1:vigUi2MEN+fwghe5ijpScxtbbDz+L/6y8XwlzYOJgSY=
428427
github.com/libp2p/go-libp2p-nat v0.1.0/go.mod h1:DQzAG+QbDYjN1/C3B6vXucLtz3u9rEonLVPtZVzQqks=
429428
github.com/libp2p/go-libp2p-noise v0.3.0 h1:NCVH7evhVt9njbTQshzT7N1S3Q6fjj9M11FCgfH5+cA=
@@ -464,9 +463,8 @@ github.com/libp2p/go-libp2p-yamux v0.8.2 h1:6GKWntresp0TFxMP/oSoH96nV8XKJRdynXsd
464463
github.com/libp2p/go-libp2p-yamux v0.8.2/go.mod h1:rUozF8Jah2dL9LLGyBaBeTQeARdwhefMCTQVQt6QobE=
465464
github.com/libp2p/go-maddr-filter v0.1.0/go.mod h1:VzZhTXkMucEGGEOSKddrwGiOv0tUhgnKqNEmIAz/bPU=
466465
github.com/libp2p/go-mplex v0.3.0/go.mod h1:0Oy/A9PQlwBytDRp4wSkFnzHYDKcpLot35JQ6msjvYQ=
466+
github.com/libp2p/go-mplex v0.4.0 h1:Ukkez9/4EOX5rTw4sHefNJp10dksftAA05ZgyjplUbM=
467467
github.com/libp2p/go-mplex v0.4.0/go.mod h1:y26Lx+wNVtMYMaPu300Cbot5LkEZ4tJaNYeHeT9dh6E=
468-
github.com/libp2p/go-mplex v0.6.0 h1:5kKp029zrsLVJT5q6ASt4LwuZFxj3B13wXXaGmFrWg0=
469-
github.com/libp2p/go-mplex v0.6.0/go.mod h1:y26Lx+wNVtMYMaPu300Cbot5LkEZ4tJaNYeHeT9dh6E=
470468
github.com/libp2p/go-msgio v0.0.4/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ=
471469
github.com/libp2p/go-msgio v0.0.6/go.mod h1:4ecVB6d9f4BDSL5fqvPiC4A3KivjWn+Venn/1ALLMWA=
472470
github.com/libp2p/go-msgio v0.1.0 h1:8Q7g/528ivAlfXTFWvWhVjTE8XG8sDTkRUKPYh9+5Q8=

0 commit comments

Comments
 (0)