2 Commits 97dddb7cbd ... 8d2fce02b9

Autore SHA1 Messaggio Data
  Cesar Rodas 8d2fce02b9 Working on personal relayer 3 mesi fa
  Cesar Rodas 97dddb7cbd Working on personal relayer 3 mesi fa
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      crates/storage/sqlite/src/lib.rs

+ 3 - 0
crates/storage/sqlite/src/lib.rs

@@ -152,6 +152,9 @@ impl<'a> Stream for Cursor<'a> {
 
 impl SQLite {
     fn build_index(indexing: Arc<AtomicUsize>, pool: Pool<Sqlite>, event: Event, is_retry: bool) {
+        if !is_retry {
+            indexing.fetch_add(1, Ordering::Relaxed);
+        }
         tokio::spawn(async move {
             let mut indexes = vec![];