diff rust/src/main.rs @ 616:a85c0c9bc1fa rust

hide epoch in ParamWaiter make_request handles the buffer too
author Matt Johnston <matt@ucc.asn.au>
date Wed, 08 Mar 2017 23:08:14 +0800
parents f153aec221be
children 8fda564cc46f
line wrap: on
line diff
--- a/rust/src/main.rs	Tue Mar 07 23:56:12 2017 +0800
+++ b/rust/src/main.rs	Wed Mar 08 23:08:14 2017 +0800
@@ -42,7 +42,6 @@
     let handle = core.handle();
 
     let params = params::Params::load(&config);
-    let epoch = params.epoch.clone();
     let mut fridge = fridge::Fridge::new(&config, nowait, params, &handle);
 
     let (fridge_reading_s, fridge_reading_r) = mpsc::channel(1);
@@ -72,7 +71,7 @@
         r
     });
 
-    let param_stream = params::ParamWaiter::stream(config, epoch, &handle);
+    let param_stream = params::ParamWaiter::stream(config, &handle);
     let p = param_stream.map(|p| {
             fridge::Message::Params(p)
         });