mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-06 19:45:25 +01:00
Update to futures 0.3.0-alpha.13 (#211)
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
use clap::{App, Arg};
|
||||
use futures::{
|
||||
compat::TokioDefaultSpawner,
|
||||
compat::Executor01CompatExt,
|
||||
future::{self, Ready},
|
||||
prelude::*,
|
||||
};
|
||||
@@ -73,7 +73,7 @@ fn main() {
|
||||
.parse()
|
||||
.unwrap_or_else(|e| panic!(r#"--port value "{}" invalid: {}"#, port, e));
|
||||
|
||||
tarpc::init(TokioDefaultSpawner);
|
||||
tarpc::init(tokio::executor::DefaultExecutor::current().compat());
|
||||
|
||||
tokio::run(
|
||||
run(([0, 0, 0, 0], port).into())
|
||||
|
||||
Reference in New Issue
Block a user