peerInfo abstract method

Future<AddrInfo> peerInfo(
  1. PeerId id
)

Returns a peer.AddrInfo struct for given peer.ID. This is a small slice of the information Peerstore has on that peer, useful to other services.

Implementation

Future<AddrInfo> peerInfo(PeerId id);