client/network: Remove unused Result returned by NetworkWorker (#6552)

This commit is contained in:
Max Inden
2020-07-02 15:18:08 +02:00
committed by GitHub
parent 4f7f312be5
commit 635310c8d4
3 changed files with 7 additions and 9 deletions
+1 -3
View File
@@ -307,9 +307,7 @@ fn build_network_future<
});
// Main network polling.
if let Poll::Ready(Ok(())) = Pin::new(&mut network).poll(cx).map_err(|err| {
warn!(target: "service", "Error in network: {:?}", err);
}) {
if let Poll::Ready(()) = network.poll_unpin(cx) {
return Poll::Ready(());
}