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
General tidying #1052
General tidying #1052
Conversation
} else { | ||
assert_eq!( | ||
format!("/ip4/127.0.0.1/udp/11101/quic-v1/p2p/{}", peer_id), | ||
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
format!("/ip4/127.0.0.1/tcp/11101/p2p/{}", peer_id), | ||
multiaddr | ||
); | ||
assert_eq!(format!("/ip4/127.0.0.1/tcp/11101/p2p/{peer_id}"), multiaddr); |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
format!("/ip4/127.0.0.1/tcp/11101/p2p/{}", peer_id), | ||
multiaddr | ||
); | ||
assert_eq!(format!("/ip4/127.0.0.1/tcp/11101/p2p/{peer_id}"), multiaddr); |
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), | ||
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
format!("/ip4/127.0.0.1/tcp/11101/p2p/{}", peer_id), | ||
multiaddr | ||
); | ||
assert_eq!(format!("/ip4/127.0.0.1/tcp/11101/p2p/{peer_id}"), multiaddr); |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
genesis_port, peer_id | ||
); | ||
let genesis_multi_addr = | ||
format!("/ip4/127.0.0.1/udp/{genesis_port:?}/quic-v1/p2p/{peer_id}"); |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
@@ -249,12 +248,10 @@ | |||
|
|||
let peer_id = self.rpc_client.obtain_peer_id(rpc_address).await?; | |||
#[cfg(not(feature = "quic"))] | |||
let genesis_multi_addr = format!("/ip4/127.0.0.1/tcp/{:?}/p2p/{}", genesis_port, peer_id); | |||
let genesis_multi_addr = format!("/ip4/127.0.0.1/tcp/{genesis_port:?}/p2p/{peer_id}"); |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
Reviewpad Report
|
Amazing, thanks very much @danieleades . Don't worry about this failing test atm. That's birttle on main and being looked at already 👍 🙇 |
Good stuff! I've taken the liberty to move a few more warnings over from
|
I hope you don't mind me poking around and kicking the tyres like this?
Description