Эх сурвалжийг харах

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

Dastan-glitch 2 жил өмнө
parent
commit
a6aa24920e

+ 2 - 0
bin/genev/genevd/src/main.rs

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

+ 2 - 2
bin/genev/genevd/src/rpc.rs

@@ -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);
         }