Skip to content

Commit 7f12ccc

Browse files
committed
Address review eomments
1 parent dc1148c commit 7f12ccc

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

apps/hermes/server/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.

apps/hermes/server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hermes"
3-
version = "0.9.3"
3+
version = "0.10.0-alpha"
44
description = "Hermes is an agent that provides Verified Prices from the Pythnet Pyth Oracle."
55
edition = "2021"
66

apps/hermes/server/src/network/pythnet.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,17 @@ where
491491
message = ws_stream.next() => {
492492
let vaa_bytes = match message.ok_or_else(|| anyhow!("PythNet quorum stream terminated."))?? {
493493
Message::Frame(_) => continue,
494-
Message::Text(message) => message.try_to_vec().unwrap(),
494+
Message::Text(message) => {
495+
match message.try_to_vec() {
496+
Ok(bytes) => bytes,
497+
Err(e) => {
498+
tracing::error!(error = ?e, "Failed to convert PythNet quorum text message to bytes.");
499+
continue;
500+
}
501+
}
502+
},
495503
Message::Binary(bytes) => bytes.to_vec(),
496-
Message::Ping(_) => {
497-
let _ = ws_stream.send(Message::Pong(vec![].into())).await;
498-
continue;
499-
}
504+
Message::Ping(_) => continue,
500505
Message::Pong(_) => {
501506
responded_to_ping = true;
502507
continue;

apps/quorum/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.

apps/quorum/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "quorum"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
[dependencies]

0 commit comments

Comments
 (0)