Mercurial > templog
diff rust/src/params.rs @ 636:43eb3cfdf769 rust
some progress, better error handling
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 16 Oct 2019 22:33:06 +0800 |
parents | 4424a8b30f9c |
children | a9f353f488d0 |
line wrap: on
line diff
--- a/rust/src/params.rs Sun Sep 22 22:06:46 2019 +0800 +++ b/rust/src/params.rs Wed Oct 16 22:33:06 2019 +0800 @@ -19,8 +19,6 @@ // for try_concat() use futures::stream::TryStreamExt; use futures::executor::block_on; -// for block_on().or_else -use futures_util::try_future::TryFutureExt; use riker::actors::*; @@ -181,7 +179,9 @@ ctx.schedule_once(Duration::from_secs(1), ctx.myself(), None, PollForParams); if let Err(e) = self.do_poll(ctx) { - warn!("Problem fetching params: {}", e); + self.limitlog.and_then(|| { + warn!("Problem fetching params: {}", e) + }); } }