mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +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 {
|
let ev = Event::AnsweredRequest {
|
||||||
peer,
|
peer,
|
||||||
total_handling_time,
|
total_handling_time,
|
||||||
};
|
};
|
||||||
self.pending_events.push_back(NetworkBehaviourAction::GenerateEvent(ev));
|
return Poll::Ready(NetworkBehaviourAction::GenerateEvent(ev));
|
||||||
}
|
}
|
||||||
|
|
||||||
Poll::Pending
|
Poll::Pending
|
||||||
|
|||||||
Reference in New Issue
Block a user