X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Freader.rs;fp=src%2Freader.rs;h=8250aaed871c44b49d794b3be394ec36c213c95d;hb=1ad3d257518100cc938b4dabfff8636414131ce0;hp=a6a1fb0a0280ddbbe33c02b9df928cbd639de1ff;hpb=8808d87877909d7d4f97d7ff320d8d165ece5800;p=dnsseed-rust diff --git a/src/reader.rs b/src/reader.rs index a6a1fb0..8250aae 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -68,8 +68,8 @@ pub fn read(store: &'static Store, printer: &'static Printer) { _ => err!(), } future::ok(()) - }).then(|_| { - println!("Exiting"); + }).then(move |_| { + printer.add_line("Shutting down...".to_string(), true); future::ok(()) })); }