-
I'm trying to make an implementation that conditionaly uses |
Beta Was this translation helpful? Give feedback.
Answered by
Velnbur
Jan 3, 2025
Replies: 1 comment
-
Nevermind, I figured it out. I needed to specify both multiplexer and authentication, like .with_other_transport(|keys| {
MemoryTransport::new()
.upgrade(libp2p::core::upgrade::Version::V1)
.authenticate(noise::Config::new(keys).unwrap())
.multiplex(yamux::Config::default())
.map(|(p, c), _| (p, StreamMuxerBox::new(c)))
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Velnbur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, I figured it out. I needed to specify both multiplexer and authentication, like
with_tcp
does: