Improved bootstraping procedure #56

Merged
lx merged 11 commits from better_bootstrap into main 2021-04-05 21:50:36 +00:00
Showing only changes of commit c5d8dc7d6d - Show all commits

View file

@ -652,7 +652,6 @@ impl System {
async fn update_status(self: &Arc<Self>, updaters: &Updaters, status: Status) { async fn update_status(self: &Arc<Self>, updaters: &Updaters, status: Status) {
if status.hash != self.status.borrow().hash { if status.hash != self.status.borrow().hash {
info!("Persisting new peer list");
let mut list = status.to_serializable_membership(&self); let mut list = status.to_serializable_membership(&self);
@ -669,6 +668,7 @@ impl System {
} }
if list.len() > 0 { if list.len() > 0 {
info!("Persisting new peer list ({} peers)", list.len());
self.persist_status self.persist_status
.save_async(&list) .save_async(&list)
.await .await