Skip to content

Commit

Permalink
chore: update tungstenite
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Oct 6, 2023
1 parent dcb12a3 commit 47e085a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion gremlin-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ chrono = { version = "0.4", default-features = false}
lazy_static = "1.3.0"
base64 = "0.21.4"
native-tls = "0.2.3"
tungstenite = { version = "0.18.0", features = ["native-tls"] }
tungstenite = { version = "0.20.1", features = ["native-tls"] }
async-tungstenite = { version = "0.23", optional = true, default-features=false}
async-std = { version = "1.4.0", optional = true, features = ["unstable","attributes"] }
async-trait = { version = "0.1.10", optional = true }
Expand Down
15 changes: 0 additions & 15 deletions gremlin-client/src/aio/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,6 @@ mod tls {
}
}

impl From<WebSocketOptions> for async_tungstenite::tungstenite::protocol::WebSocketConfig {
fn from(value: WebSocketOptions) -> Self {
(&value).into()
}
}

impl From<&WebSocketOptions> for async_tungstenite::tungstenite::protocol::WebSocketConfig {
fn from(value: &WebSocketOptions) -> Self {
let mut config = async_tungstenite::tungstenite::protocol::WebSocketConfig::default();
config.max_message_size = value.max_message_size;
config.max_frame_size = value.max_frame_size;
config
}
}

#[cfg(feature = "tokio-runtime")]
mod tls {

Expand Down
2 changes: 1 addition & 1 deletion gremlin-client/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub enum GremlinError {
Generic(String),

#[error(transparent)]
WebSocket(#[from] tungstenite::error::Error),
WebSocket(tungstenite::error::Error),

#[error(transparent)]
Pool(#[from] r2d2::Error),
Expand Down

0 comments on commit 47e085a

Please sign in to comment.