Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Dec 11, 2023
1 parent f0e0d88 commit be2d8f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1528,8 +1528,12 @@ impl Service {
let request_body = query.target().rpc_request(return_peer);
Poll::Ready(QueryEvent::Waiting(query.id(), node_id, request_body))
}
debug!("Query id: {:?} timed out", query.id());
QueryPoolState::Timeout(query) => Poll::Ready(QueryEvent::TimedOut(Box::new(query))),

QueryPoolState::Timeout(query) => {
let query_id = query.id().0;
debug!(%query_id, "Query timed out");
Poll::Ready(QueryEvent::TimedOut(Box::new(query)))
},
QueryPoolState::Waiting(None) | QueryPoolState::Idle => Poll::Pending,
})
.await
Expand Down

0 comments on commit be2d8f1

Please sign in to comment.