Migration from mplex to yamux #3916
-
Hello, I just upgraded my P2P stack to Rust libp2p v0.51.3. One of the big changes in that release is the deprecation of What would be the best way to achieve this? Is this possible at all? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can use We will continue to maintain |
Beta Was this translation helpful? Give feedback.
-
Pretty much like @thomaseizinger said, you could use |
Beta Was this translation helpful? Give feedback.
-
Great, I figured the mechanism was there somewhere but I couldn't find it. It seems to work! Thanks for the example @dariusc93. |
Beta Was this translation helpful? Give feedback.
You can use
SelectUpgrade
where you listyamux
first, meaning it will be the preferred muxer.We will continue to maintain
libp2p-mplex
but you'll have to depend on it yourself, the reexport fromlibp2p
will be gone in the next release :)