# HG changeset patch # User Matt Johnston # Date 1487344053 -28800 # Node ID 71f045231a076b5fd978d3f265775163e936ddef # Parent 282fae1c12e42ef40fc72259c7b8c7e1e504e8bd remove unused file diff -r 282fae1c12e4 -r 71f045231a07 rust/src/configwaiter.rs --- a/rust/src/configwaiter.rs Fri Feb 17 22:27:44 2017 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -extern crate tokio_core; -extern crate futures; -extern crate rand; - -use std::time::Duration; -use std::io; - -use tokio_core::reactor::Interval; -use tokio_core::reactor::Handle; -use futures::Stream; -use types::*; - -pub struct ParamWaiter { -} - -impl ParamWaiter { - fn step(&mut self) -> Params { - let mut p = Params::defaults(); - let mut rng = rand::thread_rng(); - p.fridge_setpoint = 17.0 + 4.0*rand::random::(); - p - } - - pub fn new() -> Self { - ParamWaiter {} - } - - pub fn run(handle: &Handle, rate: u64) -> Box> { - let mut s = ParamWaiter::new(); - - let dur = Duration::from_millis(rate); - Interval::new(dur, handle).unwrap().map(move |()| { - s.step() - }).boxed() - } -} -