diff --git a/src/p2p/behaviour.rs b/src/p2p/behaviour.rs index 19de7718..4c105a63 100644 --- a/src/p2p/behaviour.rs +++ b/src/p2p/behaviour.rs @@ -141,6 +141,7 @@ impl NetworkBehaviourEventProcess for Behaviour< let ipfs = self.ipfs.clone(); let queued_blocks = Arc::clone(&self.bitswap().queued_blocks); task::spawn(async move { + // FIXME: need a better API to `get_block_now` or without waiting. let block = match ipfs.repo.get_block(&cid).await { Ok(block) => block, Err(err) => {