diff rust/src/fridge.rs @ 615:f153aec221be rust

move Params, epoch code
author Matt Johnston <matt@ucc.asn.au>
date Tue, 07 Mar 2017 23:56:12 +0800
parents f3e39e2107fd
children 8fda564cc46f
line wrap: on
line diff
--- a/rust/src/fridge.rs	Tue Mar 07 23:04:02 2017 +0800
+++ b/rust/src/fridge.rs	Tue Mar 07 23:56:12 2017 +0800
@@ -11,7 +11,8 @@
 use tokio_core::reactor::{Timeout,Handle};
 use futures::sync::{mpsc};
 
-use ::Config;
+use config::Config;
+use params::Params;
 use types::*;
 
 #[derive(Debug)]
@@ -57,7 +58,7 @@
         let (s, r) = mpsc::channel(1);
         let mut f = Fridge { 
             config: config.clone(),
-            params: p,
+            params: p.clone(),
             temp_wort: None,
             temp_fridge: None,