pub fn make_fake_peer_connection<M: Clone + Send + 'static>(
peer_1: PeerId,
peer_2: PeerId,
buf_size: usize,
) -> (DynP2PConnections<M>, DynP2PConnections<M>)
Expand description
Create a fake link between peer1
and peer2
for test purposes
buf_size
controls the size of the tokio::mpsc::channel
used
under the hood (both ways).