type DiscoveredPeer = (PeerSocketAddr, Client);
Expand description
A successful outbound peer connection attempt or inbound connection handshake.
The Handshake
service returns a Result
. Only successful connections
should be sent on the channel. Errors should be logged or ignored.
We don’t allow any errors in this type, because:
- The connection limits don’t include failed connections
- tower::Discover interprets an error as stream termination