Skip to content

Commit

Permalink
tidy spans
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Nov 25, 2020
1 parent 0583779 commit de8415d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions zebrad/src/components/inbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ impl Service<zn::Request> for Inbound {
type Future =
Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>;

#[instrument(skip(self, cx))]
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
// Check whether the network setup is finished, but don't wait for it to
// become ready before reporting readiness. We expect to get it "soon",
Expand Down Expand Up @@ -139,7 +138,7 @@ impl Service<zn::Request> for Inbound {
}
}

#[instrument(skip(self))]
#[instrument(name = "inbound", skip(self, req))]
fn call(&mut self, req: zn::Request) -> Self::Future {
match req {
zn::Request::Peers => match self.address_book.as_ref() {
Expand Down
2 changes: 1 addition & 1 deletion zebrad/src/components/inbound/downloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ where
/// Queue a block for download and verification.
///
/// Returns true if the block was newly queued, and false if it was already queued.
#[instrument(skip(self))]
#[instrument(skip(self, hash), fields(hash = %hash))]
pub fn download_and_verify(&mut self, hash: block::Hash) -> bool {
if self.cancel_handles.contains_key(&hash) {
tracing::debug!("hash already queued for download");
Expand Down

0 comments on commit de8415d

Please sign in to comment.