chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bd863f
)
report, plan
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 3 Aug 2021 23:56:26 +0000
(
00:56
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 3 Aug 2021 23:56:26 +0000
(
00:56
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/reporter.rs
patch
|
blob
|
history
diff --git
a/src/reporter.rs
b/src/reporter.rs
index d9ad4650cee7fc7ebde63c7925172719267e58ae..015b40203da1366a8043b899e0c5a6f5ae8fbbe8 100644
(file)
--- 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