Add test for recursive executor

This commit is contained in:
rishflab 2020-11-30 13:25:11 +11:00
parent dca15b6872
commit 24631d464d
9 changed files with 175 additions and 127 deletions

View file

@ -280,7 +280,11 @@ pub async fn swap(
pub type Swarm = libp2p::Swarm<Behaviour>;
fn new_swarm(listen: Multiaddr, transport: SwapTransport, behaviour: Behaviour) -> Result<Swarm> {
pub fn new_swarm(
listen: Multiaddr,
transport: SwapTransport,
behaviour: Behaviour,
) -> Result<Swarm> {
use anyhow::Context as _;
let local_peer_id = behaviour.peer_id();