bin/genev: update event_graph synced flag when we skip sync

This commit is contained in:
Dastan-glitch
2023-12-18 05:17:58 +03:00
parent d52ac5975c
commit a6aa24920e
2 changed files with 4 additions and 2 deletions

View File

@@ -142,6 +142,8 @@ async fn realmain(settings: Args, executor: Arc<smol::Executor<'static>>) -> Res
}
}
}
} else {
*event_graph.synced.write().await = true;
}
////////////////////

View File

@@ -19,7 +19,7 @@
use std::collections::HashSet;
use async_trait::async_trait;
use log::{debug, error, info};
use log::{debug, error};
use smol::lock::{Mutex, MutexGuard};
use tinyjson::JsonValue;
@@ -140,7 +140,7 @@ impl JsonRpcInterface {
}
};
info!("Marking event {} as seen", event_id);
debug!("Marking event {} as seen", event_id);
seen_events.push(genevent);
}