mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-08 19:57:06 +00:00
client/network: Remove unused Result returned by NetworkWorker (#6552)
This commit is contained in:
1 parent
4f7f312be5
commit
635310c8d4
3 files changed
+7
-9
No files matched your search
@@ -861,13 +861,13 @@ pub trait TestNetFactory: Sized {
|
||||
);
|
||||
}
|
||||
|
||||
/// Polls the testnet. Processes all the pending actions and returns `NotReady`.
|
||||
/// Polls the testnet. Processes all the pending actions.
|
||||
fn poll(&mut self, cx: &mut FutureContext) {
|
||||
self.mut_peers(|peers| {
|
||||
for peer in peers {
|
||||
trace!(target: "sync", "-- Polling {}", peer.id());
|
||||
if let Poll::Ready(res) = Pin::new(&mut peer.network).poll(cx) {
|
||||
res.unwrap();
|
||||
if let Poll::Ready(()) = peer.network.poll_unpin(cx) {
|
||||
panic!("NetworkWorker has terminated unexpectedly.")
|
||||
}
|
||||
trace!(target: "sync", "-- Polling complete {}", peer.id());
|
||||
|
||||
|
||||
Reference in new issue
Block a user