[attster] Remove while true and wait instead (#411)

This commit is contained in:
Ali Behjati 2022-12-05 18:34:31 +01:00 committed by GitHub
parent 3beffdfe46
commit df3297e430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -2710,7 +2710,7 @@ dependencies = [
[[package]]
name = "pyth2wormhole-client"
version = "1.1.0"
version = "1.1.1"
dependencies = [
"borsh",
"clap 3.1.18",

View File

@ -1,6 +1,6 @@
[package]
name = "pyth2wormhole-client"
version = "1.1.0"
version = "1.1.1"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -252,8 +252,7 @@ while True:
)
# Wait for an unexpected process exit
while p2w_client_process.poll() is None:
pass
retcode = p2w_client_process.wait()
# Yell if the supposedly non-stop attestation process exits
logging.warn(f"pyth2wormhole-client stopped unexpectedly with code {p2w_client_process.retcode}")
logging.warn(f"pyth2wormhole-client stopped unexpectedly with code {retcode}")