Sfoglia il codice sorgente

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

Dastan-glitch 2 anni fa
parent
commit
a6aa24920e
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 2 0
      bin/genev/genevd/src/main.rs
  2. 2 2
      bin/genev/genevd/src/rpc.rs

+ 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 std::collections::HashSet;
 
 
 use async_trait::async_trait;
 use async_trait::async_trait;
-use log::{debug, error, info};
+use log::{debug, error};
 use smol::lock::{Mutex, MutexGuard};
 use smol::lock::{Mutex, MutexGuard};
 use tinyjson::JsonValue;
 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);
             seen_events.push(genevent);
         }
         }