Skip to content

Commit df3297e

Browse files
authored
[attster] Remove while true and wait instead (#411)
1 parent 3beffdf commit df3297e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

solana/pyth2wormhole/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

solana/pyth2wormhole/client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth2wormhole-client"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
edition = "2018"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

third_party/pyth/p2w_autoattest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@
252252
)
253253

254254
# Wait for an unexpected process exit
255-
while p2w_client_process.poll() is None:
256-
pass
255+
retcode = p2w_client_process.wait()
257256

258257
# Yell if the supposedly non-stop attestation process exits
259-
logging.warn(f"pyth2wormhole-client stopped unexpectedly with code {p2w_client_process.retcode}")
258+
logging.warn(f"pyth2wormhole-client stopped unexpectedly with code {retcode}")

0 commit comments

Comments
 (0)