소스 검색

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

commit-id:68de125f
Stan Drozd 3 년 전
부모
커밋
7463a25825
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  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;
+                    }
                 }
             }