short_peer

Function short_peer 

Source
fn short_peer(peer_id: PeerId) -> String
Expand description

Returns a shortened string representation of a PeerId.

§Arguments

  • peer_id - The PeerId to shorten.

§Returns

A shortened string of the PeerId.