event_graph: set synced boolean to true after all dags are synced

This commit is contained in:
oars
2025-09-30 11:36:19 +03:00
committed by dasman
parent 3e8c6840be
commit 454a25fd96

View File

@@ -595,8 +595,7 @@ impl EventGraph {
}
if missing_parents.is_empty() {
*self.synced.write().await = true;
info!(target: "event_graph::dag_sync", "[EVENTGRAPH] DAG synced successfully!");
info!(target: "event_graph::dag_sync()", "[EVENTGRAPH] DAG synced successfully!");
return Ok(())
}
@@ -714,8 +713,6 @@ impl EventGraph {
}
// <-- end download payload
*self.synced.write().await = true;
info!(target: "event_graph::dag_sync()", "[EVENTGRAPH] DAG synced successfully!");
Ok(())
}
@@ -734,6 +731,7 @@ impl EventGraph {
}
}
*self.synced.write().await = true;
Ok(())
}