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(node): add feature flag for tcp/quic #630
Conversation
); | ||
} else { | ||
assert_eq!( | ||
format!("/ip4/127.0.0.1/udp/11101/quic-v1/p2p/{}", peer_id), |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
|
||
if !cfg!(feature = "quic") { | ||
assert_eq!( | ||
format!("/ip4/127.0.0.1/tcp/11101/p2p/{}", peer_id), |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
); | ||
} else { | ||
assert_eq!( | ||
format!("/ip4/127.0.0.1/udp/11101/quic-v1/p2p/{}", peer_id), |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
); | ||
if !cfg!(feature = "quic") { | ||
assert_eq!( | ||
format!("/ip4/127.0.0.1/tcp/11101/p2p/{}", peer_id), |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
27fa316
to
dc9e9c5
Compare
dc9e9c5
to
c9a79cc
Compare
let genesis_multi_addr = format!("/ip4/127.0.0.1/tcp/{:?}/p2p/{}", genesis_port, peer_id); | ||
#[cfg(feature = "quic")] | ||
let genesis_multi_addr = format!( | ||
"/ip4/127.0.0.1/udp/{:?}/quic-v1/p2p/{}", |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
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.
PR looks good to me!
Nice one, thanks @aed900 ! 🙇 |
Added a feature flag to be able to toggle quic instead of the tcp default.
Refactored code related to the "add feature flag for tcp/quic" commit for this PR.
39d030a
to
b47595b
Compare
Added a feature flag to be able to toggle quic instead of the tcp default.