Mercurial > templog
diff rust/src/main.rs @ 627:d5075136442f rust
futures await
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 06 Feb 2018 22:16:44 +0800 |
parents | efcbe0d3afd6 |
children | c57821a60e51 |
line wrap: on
line diff
--- a/rust/src/main.rs Wed Dec 06 00:09:45 2017 +0800 +++ b/rust/src/main.rs Tue Feb 06 22:16:44 2018 +0800 @@ -1,5 +1,8 @@ +#![feature(proc_macro, conservative_impl_trait, generators)] + + extern crate tokio_core; -extern crate futures; +extern crate futures_await as futures; #[macro_use] extern crate log; extern crate env_logger; @@ -71,7 +74,7 @@ r }); - let param_stream = params::ParamWaiter::stream(config, &handle); + let param_stream = params::ParamWaiter::stream(config.clone(), handle.clone()); let param_stream = param_stream.map(|p| { fridge::Message::Params(p) });