These conversions are fallible right now resulting in stream termination, whereas they should either be infallible or trigger moving to the next peer.
Generally streams produced by peer_agnostic::Client::*_stream should be infallible or fail on absolutely critical errors. A malicious peer is not a critical error, it should be punished and then we move to the next peer.
These conversions are fallible right now resulting in stream termination, whereas they should either be infallible or trigger moving to the next peer.
Generally streams produced by
peer_agnostic::Client::*_stream
should be infallible or fail on absolutely critical errors. A malicious peer is not a critical error, it should be punished and then we move to the next peer.