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

This commit is contained in:
Max Inden authored and GitHub committed 2020-07-02 15:18:08 +02:00
1 parent 4f7f312be5
commit 635310c8d4
3 files changed
+7 -9

No files matched your search

+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(());
}