Skip to content

Commit

Permalink
fix: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Sep 17, 2024
1 parent 5b4671f commit 0482f80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/services/p2p/src/p2p_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ pub enum FuelP2PEvent {
async fn parse_multiaddrs(multiaddrs: Vec<Multiaddr>) -> anyhow::Result<Vec<Multiaddr>> {
let dnsaddr_urls = multiaddrs
.iter()
.filter_map(|node| {
if let Protocol::Dnsaddr(multiaddr) = node.iter().next()? {
Some(multiaddr.clone())
.filter_map(|multiaddr| {
if let Protocol::Dnsaddr(dnsaddr_url) = multiaddr.iter().next()? {
Some(dnsaddr_url.clone())
} else {
None
}
Expand Down

0 comments on commit 0482f80

Please sign in to comment.