chore: add a FIXME from the former PR

Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
ljedrz 2020-07-06 10:22:57 +02:00
parent 872913ce3f
commit d5f6f5e300

View File

@ -141,6 +141,7 @@ impl<Types: IpfsTypes> NetworkBehaviourEventProcess<BitswapEvent> 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) => {