Improve bootstraping: do it regularly; persist peer list

This commit is contained in:
Alex Auvolat
2021-04-05 19:55:53 +02:00
parent 3a449badb1
commit 9ced9f78dc
12 changed files with 226 additions and 80 deletions
+7 -1
View File
@@ -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");