mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-22 19:56:20 +00:00
Small fix to block response completion reporting (#5967)
* Small fix to block response completion reporting * while -> if
This commit is contained in:
1 parent
3123622cbe
commit
e5a36c8fa9
1 file changed
+2
-2
@@ -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