Jelajahi Sumber

p2w-client: include resend state lookups in the RPC interval setting

commit-id:68de125f
Stan Drozd 3 tahun lalu
induk
melakukan
7463a25825
1 mengubah file dengan 6 tambahan dan 5 penghapusan
  1. 6 5
      solana/pyth2wormhole/client/src/main.rs

+ 6 - 5
solana/pyth2wormhole/client/src/main.rs

@@ -358,12 +358,13 @@ fn handle_attest(
                                 elapsed.subsec_millis(),
                             )
                         }
-                    }
-
-                    // Track the finished batches
-                    finished_count += 1;
+                    } else {
+                        // Track the finished batches outside daemon mode
+                        finished_count += 1;
 
-                    continue; // No RPC requests are made any of these cases, skip sleep
+                        // No RPC requests are made on terminal states outside daemon mode, skip sleep
+                        continue;
+                    }
                 }
             }