comparison rust/src/fridge.rs @ 595:e87655ed8429 rust

add config
author Matt Johnston <matt@ucc.asn.au>
date Thu, 05 Jan 2017 23:26:00 +0800
parents aff50ee77252
children a440eafa84a9
comparison
equal deleted inserted replaced
594:aff50ee77252 595:e87655ed8429
95 let v = self.ticker; 95 let v = self.ticker;
96 let t = Timeout::new(dur, &self.handle).unwrap() 96 let t = Timeout::new(dur, &self.handle).unwrap()
97 .map_err(|_| ()) 97 .map_err(|_| ())
98 .and_then(move |_| { 98 .and_then(move |_| {
99 waker.send(v) 99 waker.send(v)
100 .map_err(|_| ()) 100 .map_err(|e| {
101 warn!("Send error in tick(): {}", e.to_string());
102 ()
103 })
101 }) 104 })
102 .map(|_| ()); 105 .map(|_| ());
103 self.handle.spawn(t); 106 self.handle.spawn(t);
104 } 107 }
105 108