Skip to content

Commit b1dc0b6

Browse files
committed
Need to log this path too
1 parent 5636c1e commit b1dc0b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iroh-bitswap/src/network.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
time::Duration,
77
};
88

9-
use anyhow::{anyhow, bail, Result};
9+
use anyhow::{anyhow, bail, Context, Result};
1010
use cid::Cid;
1111
use futures::Stream;
1212
use iroh_metrics::{bitswap::BitswapMetrics, inc};
@@ -312,6 +312,8 @@ impl Network {
312312
self.network_out_sender
313313
.send(OutEvent::UnprotectPeer { peer, response: s })
314314
.await
315+
.context("Failed to unprotect peer")
316+
.map_err(|err| error!("{err:#}"))
315317
.ok();
316318

317319
r.await.unwrap_or_default()

0 commit comments

Comments
 (0)