From: Ian Jackson Date: Tue, 3 Aug 2021 23:56:26 +0000 (+0100) Subject: report, plan X-Git-Tag: hippotat/1.0.0~358 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=d2cf97bd74ce752c9cd147c23a73c9f09bed57b4;p=hippotat.git report, plan Signed-off-by: Ian Jackson --- diff --git a/src/reporter.rs b/src/reporter.rs index d9ad465..015b402 100644 --- a/src/reporter.rs +++ b/src/reporter.rs @@ -8,6 +8,11 @@ pub struct Reporter<'r> { ic: &'r InstanceConfig, } +// Reporting strategy +// - report all errors +// - report first success after a period of lack of messages +// - if error, report last success + impl<'r> Reporter<'r> { pub fn new(ic: &'r InstanceConfig) -> Self { Reporter { ic