diff options
author | Alex Auvolat <alex@adnab.me> | 2021-04-05 19:55:53 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-04-27 16:37:08 +0200 |
commit | 9ced9f78dcc3894b3c2f13b8a95653f990278f03 (patch) | |
tree | 00b5180edcfab392eef203f594edb1332ccfce5d /src/table/data.rs | |
parent | 3a449badb125b4f5bf0497639745a583bc949da2 (diff) | |
download | garage-9ced9f78dcc3894b3c2f13b8a95653f990278f03.tar.gz garage-9ced9f78dcc3894b3c2f13b8a95653f990278f03.zip |
Improve bootstraping: do it regularly; persist peer list
Diffstat (limited to 'src/table/data.rs')
-rw-r--r-- | src/table/data.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/table/data.rs b/src/table/data.rs index e07a21d2..542a8481 100644 --- a/src/table/data.rs +++ b/src/table/data.rs @@ -35,7 +35,13 @@ where F: TableSchema, R: TableReplication, { - pub fn new(system: Arc<System>, name: String, instance: F, replication: R, db: &sled::Db) -> Arc<Self> { + pub fn new( + system: Arc<System>, + name: String, + instance: F, + replication: R, + db: &sled::Db, + ) -> Arc<Self> { let store = db .open_tree(&format!("{}:table", name)) .expect("Unable to open DB tree"); |