Skip to content

Commit

Permalink
fix dial metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Oct 12, 2022
1 parent 5c9b1e4 commit 6b34a80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iroh-bitswap/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ impl Network {
let res = r
.await?
.map_err(|e| anyhow!("dial:{} failed: {}", dial_id, e))?;

debug!("dial:{}: success {}", dial_id, peer);
inc!(BitswapMetrics::Dials);
Ok::<_, anyhow::Error>(res)
})
.await??;

debug!("dial:{}: success {}", dial_id, peer);
inc!(BitswapMetrics::Dials);

Ok(res)
}

Expand Down

0 comments on commit 6b34a80

Please sign in to comment.