1
0

2 Commity 97dddb7cbd ... 8d2fce02b9

Autor SHA1 Správa Dátum
  Cesar Rodas 8d2fce02b9 Working on personal relayer 3 mesiacov pred
  Cesar Rodas 97dddb7cbd Working on personal relayer 3 mesiacov pred
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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![];