mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 05:47:58 +00:00
Small fix to block response completion reporting (#5967)
* Small fix to block response completion reporting * while -> if
This commit is contained in:
@@ -708,12 +708,12 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
while let Poll::Ready(Some((peer, total_handling_time))) = self.outgoing.poll_next_unpin(cx) {
|
||||
if let Poll::Ready(Some((peer, total_handling_time))) = self.outgoing.poll_next_unpin(cx) {
|
||||
let ev = Event::AnsweredRequest {
|
||||
peer,
|
||||
total_handling_time,
|
||||
};
|
||||
self.pending_events.push_back(NetworkBehaviourAction::GenerateEvent(ev));
|
||||
return Poll::Ready(NetworkBehaviourAction::GenerateEvent(ev));
|
||||
}
|
||||
|
||||
Poll::Pending
|
||||
|
||||
Reference in New Issue
Block a user