From 9ced9f78dcc3894b3c2f13b8a95653f990278f03 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 5 Apr 2021 19:55:53 +0200 Subject: Improve bootstraping: do it regularly; persist peer list --- src/table/data.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/table/data.rs') 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, name: String, instance: F, replication: R, db: &sled::Db) -> Arc { + pub fn new( + system: Arc, + name: String, + instance: F, + replication: R, + db: &sled::Db, + ) -> Arc { let store = db .open_tree(&format!("{}:table", name)) .expect("Unable to open DB tree"); -- cgit v1.2.3