mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-26 10:01:00 +00:00
Print stats
This commit is contained in:
parent
fa11cb746a
commit
c5d8dc7d6d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue