Skip to content

Commit

Permalink
fix: also ping
Browse files Browse the repository at this point in the history
  • Loading branch information
LIAUD Corentin committed Sep 22, 2024
1 parent cc5c9b7 commit e1e4012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/dht/src/dht.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use tokio::{
};

use tokio_util::sync::CancellationToken;
use tracing::{debug, debug_span, error, error_span, info, trace, warn, Instrument};
use tracing::{debug, debug_span, error, error_span, info, trace, trace_span, warn, Instrument};

#[derive(Debug, Serialize)]
pub struct DhtStats {
Expand Down Expand Up @@ -999,7 +999,7 @@ impl DhtWorker {
debug!("error: {e:#}");
}
}
}.instrument(error_span!("ping", addr=addr.to_string())))
}.instrument(trace_span!("ping", addr=addr.to_string())))
},
_ = futs.next(), if !futs.is_empty() => {},
}
Expand Down

0 comments on commit e1e4012

Please sign in to comment.