diff --git a/Cargo.lock b/Cargo.lock index be649aa..702551f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "actix-codec" -version = "0.4.0-beta.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90673465c6187bd0829116b02be465dc0195a74d7719f76ffff0effef934a92e" +checksum = "1d5dbeb2d9e51344cb83ca7cc170f1217f9fe25bfc50160e6e200b5c31c1019a" dependencies = [ "bitflags", "bytes 1.0.1", @@ -1427,7 +1427,7 @@ dependencies = [ [[package]] name = "polygon-data-relay" -version = "1.2.0" +version = "1.2.1" dependencies = [ "actix-service", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 52035aa..30969f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "polygon-data-relay" -version = "1.2.0" +version = "1.2.1" authors = ["Sebastian Rollen "] edition = "2018" diff --git a/src/relay.rs b/src/relay.rs index 46a110d..ea9b0e7 100644 --- a/src/relay.rs +++ b/src/relay.rs @@ -63,11 +63,14 @@ pub async fn run( } } } - Err(e) => { - let e = e.into(); - sentry_anyhow::capture_anyhow(&e); - panic!("Failed to receive message from the WebSocket: {}", e) - } + Err(e) => match e { + polygon::errors::Error::Serde { .. } => { + let e = e.into(); + sentry_anyhow::capture_anyhow(&e); + error!("Failed to reveive message from the WebSocket: {}", e) + } + _ => panic!("Failed to receive message from the WebSocket: {}", e), + }, } }, )