-
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
feat: add QUIC transport to the chat example #3635
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! A few questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One request, other LGTM
It is a legitimate question. Personally, I think users should compose their transport for a production application themselves anyway. But, it is useful to get started quickly. Maybe we can incorporate this into An idea sketch would be: SwarmBuilder::new(local_peer_id)
.tokio_executor()
.default_transport()
.behaviour(my_behaviour)
.build() The builder would be type-state guided such that you must call either |
I like this idea. Everyone will be able to start quickly with a default and customize later on when they see a need for that. |
The clippy build is failing due to a recent PR that merged into master (#3580), can you address that please? |
Idea above for a |
As you are pointing out, it would have to be an extension trait because |
@thomaseizinger Added Quic as a separate crate. |
Description
See: #3501 (comment)
Notes & open questions
Removed
development_transport
and used a custom transport, since we don't want Quic in dev transport.However, I anticipate others will copy this code to their new projects when they need Quic+Tcp, so there is a question of the purpose of the
development_transport
function.Change checklist