aboutsummaryrefslogtreecommitdiff
path: root/src/store/key_table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-23 18:36:12 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-23 18:36:12 +0000
commit4ef84a0558c0bf6641094e762ede0c962781204d (patch)
tree8e6014ee12541c7085b371e99941c5c3da53f2b0 /src/store/key_table.rs
parent44a1089d9569b442c098c2ceebb3f691816e52d2 (diff)
downloadgarage-4ef84a0558c0bf6641094e762ede0c962781204d.tar.gz
garage-4ef84a0558c0bf6641094e762ede0c962781204d.zip
Move repair to separate file
Diffstat (limited to 'src/store/key_table.rs')
-rw-r--r--src/store/key_table.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/store/key_table.rs b/src/store/key_table.rs
index 7476622f..6c3f96d6 100644
--- a/src/store/key_table.rs
+++ b/src/store/key_table.rs
@@ -30,7 +30,8 @@ impl Key {
authorized_buckets: vec![],
};
for b in buckets {
- ret.add_bucket(b);
+ ret.add_bucket(b)
+ .expect("Duplicate AllowedBucket in Key constructor");
}
ret
}