Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
client/authority-discovery: Remove explicit return
  • Loading branch information
mxinden committed Aug 24, 2020
commit 7d51f6cb6727eb8500683c912645a09788af7baf
5 changes: 3 additions & 2 deletions client/authority-discovery/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ where
.into_iter()
.map(move |a| {
if a.iter().any(|p| matches!(p, multiaddr::Protocol::P2p(_))) {
return a;
a
} else {
a.with(multiaddr::Protocol::P2p(peer_id.clone()))
}
a.with(multiaddr::Protocol::P2p(peer_id.clone()))
}),
)
}
Expand Down