core: use current_thread tokio runtime to poll network to proto channel (#2531)

This commit is contained in:
André Silva
2019-05-10 10:26:58 +01:00
committed by GitHub
parent 71426fb060
commit 32fdeed21c
+1 -1
View File
@@ -673,7 +673,7 @@ pub trait TestNetFactory: Sized {
).unwrap();
std::thread::spawn(move || {
tokio::run(futures::future::poll_fn(move || {
tokio::runtime::current_thread::run(futures::future::poll_fn(move || {
while let Async::Ready(msg) = network_to_protocol_rx.poll().unwrap() {
match msg {
Some(FromNetworkMsg::PeerConnected(peer_id, debug_msg)) =>