-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use QUIC Transport with SwarmBuilder #3179
Comments
For the time being, you need to box up the rust-libp2p/transports/quic/tests/smoke.rs Lines 310 to 319 in be0b62a
|
Great! Thats very helpful, thank you. I was wondering if there was something like that. |
I think we should rework the API of |
Related #3186. Adding a @libp2p/rust-libp2p-maintainers Thoughts? |
No opinion here. Doing the boxing in |
Using QUIC and WebRTC together with other transports is a bit clunky at the moment: |
With #3588 merged, there is now only a single place to ( |
Summary
Following the example at https://docs.rs/libp2p/latest/libp2p/quic/index.html, I tried to use the QUIC transport to create a Swarm object. However
Example code:
Expected behaviour
I would expect the quic::Connection struct (Which implements StreamMuxer) to be boxed up and accepted as a transport for the SwarmBuilder parameter.
Actual behaviour
I get the following compile-time error:
Version
libp2p 0.50
The text was updated successfully, but these errors were encountered: