chore: add a FIXME from the former PR
Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
parent
872913ce3f
commit
d5f6f5e300
@ -141,6 +141,7 @@ impl<Types: IpfsTypes> NetworkBehaviourEventProcess<BitswapEvent> for Behaviour<
|
|||||||
let ipfs = self.ipfs.clone();
|
let ipfs = self.ipfs.clone();
|
||||||
let queued_blocks = Arc::clone(&self.bitswap().queued_blocks);
|
let queued_blocks = Arc::clone(&self.bitswap().queued_blocks);
|
||||||
task::spawn(async move {
|
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 {
|
let block = match ipfs.repo.get_block(&cid).await {
|
||||||
Ok(block) => block,
|
Ok(block) => block,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user