Function strip_peer_id

Source
pub(crate) fn strip_peer_id(addr: &mut Multiaddr)
Expand description

for a multiaddr that ends with a peer id, this strips this suffix. Rust-libp2p only supports dialing to an address without providing the peer id.