aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-27 17:57:48 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-27 17:57:48 +0200
commit247dbcd5980e6a0158fe209d85788d3167dceab0 (patch)
treeb5f9b20cb87ead9d5e8cfb70984f9795ad2e7712 /src/util
parent0e5175abeeb1b2d9cfe27603005b7feb3cf040de (diff)
downloadgarage-247dbcd5980e6a0158fe209d85788d3167dceab0.tar.gz
garage-247dbcd5980e6a0158fe209d85788d3167dceab0.zip
Only one scrub worker (wip)
Diffstat (limited to 'src/util')
-rw-r--r--src/util/tranquilizer.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/tranquilizer.rs b/src/util/tranquilizer.rs
index f0c2b410..9c796f8b 100644
--- a/src/util/tranquilizer.rs
+++ b/src/util/tranquilizer.rs
@@ -71,4 +71,8 @@ impl Tranquilizer {
pub fn reset(&mut self) {
self.last_step_begin = Instant::now();
}
+
+ pub fn clear(&mut self) {
+ self.observations.clear();
+ }
}