aboutsummaryrefslogtreecommitdiff
path: root/src/util/background
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-04 13:25:57 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-04 13:25:57 +0100
commit29dbcb82780dcdb6f2a01a9da5122e70abaf93bf (patch)
tree222ec61f03c5abcca6678239111e94ad4dcfeb67 /src/util/background
parentf3f27293df83986ba29fb03f8af26a2177518e20 (diff)
downloadgarage-29dbcb82780dcdb6f2a01a9da5122e70abaf93bf.tar.gz
garage-29dbcb82780dcdb6f2a01a9da5122e70abaf93bf.zip
bg var operation on all nodes at onceworker-get
Diffstat (limited to 'src/util/background')
-rw-r--r--src/util/background/vars.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/background/vars.rs b/src/util/background/vars.rs
index fe54268e..7a449c95 100644
--- a/src/util/background/vars.rs
+++ b/src/util/background/vars.rs
@@ -71,6 +71,12 @@ impl BgVars {
}
}
+impl Default for BgVars {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
// ----
trait BgVarTrait: Send + Sync + 'static {