From d5f6f5e3000e1f7623774b65f1f6da2948f48e3e Mon Sep 17 00:00:00 2001 From: ljedrz Date: Mon, 6 Jul 2020 10:22:57 +0200 Subject: [PATCH] chore: add a FIXME from the former PR Signed-off-by: ljedrz --- src/p2p/behaviour.rs | 1 + 1 file changed, 1 insertion(+) 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) => {