This commit is contained in:
pawan
2020-05-22 15:49:30 +05:30
parent 85d099f664
commit 1be19db3bf
2 changed files with 18 additions and 14 deletions

View File

@@ -87,10 +87,10 @@ impl<T: BeaconChainTypes> Router<T> {
// spawn handler task and move the message handler instance into the spawned thread
executor.spawn(
async move {
debug!(log, "Network message router started");
handler_recv
.for_each(move |msg| future::ready(handler.handle_message(msg)))
.await;
debug!(log, "Network message router terminated.");
},
"router",
);