Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
ffb18ac3
Verified
Commit
ffb18ac3
authored
Oct 07, 2021
by
Andronik Ordian
Browse files
one more try
parent
dfabeae7
Pipeline
#161105
canceled with stages
in 1 minute and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/network/bridge/src/validator_discovery.rs
View file @
ffb18ac3
...
...
@@ -155,7 +155,7 @@ impl<N: Network, AD: AuthorityDiscovery> Service<N, AD> {
fn
extract_peer_ids
(
multiaddr
:
impl
Iterator
<
Item
=
Multiaddr
>
)
->
HashSet
<
PeerId
>
{
multiaddr
.filter_map
(|
addr
|
match
addr
.pop
()
{
.filter_map
(|
mut
addr
|
match
addr
.pop
()
{
Some
(
multiaddr
::
Protocol
::
P2p
(
key
))
=>
PeerId
::
from_multihash
(
key
)
.ok
(),
_
=>
None
,
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment