diff 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
line wrap: on
line diff
--- a/rust/src/fridge.rs	Wed Jan 04 17:18:44 2017 +0800
+++ b/rust/src/fridge.rs	Thu Jan 05 23:26:00 2017 +0800
@@ -97,7 +97,10 @@
             .map_err(|_| ())
             .and_then(move |_| {
                 waker.send(v)
-                    .map_err(|_| ())
+                    .map_err(|e| {
+                        warn!("Send error in tick(): {}", e.to_string());
+                        ()
+                    })
             })
             .map(|_| ());
         self.handle.spawn(t);