Skip to content

Commit b82c880

Browse files
authored
chore: update tokio-tungstenite (gakonst#2423)
1 parent 3e710bc commit b82c880

File tree

5 files changed

+34
-14
lines changed

5 files changed

+34
-14
lines changed

Cargo.lock

+25-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ ethers-contract-derive = { version = "2.0.4", path = "ethers-contract/ethers-con
7979

8080
# async / async utils
8181
tokio = "1.28"
82-
tokio-tungstenite = { version = "0.18.0", default-features = false }
82+
tokio-tungstenite = { version = "0.19", default-features = false }
8383
futures = { version = "0.3.28", default-features = false, features = ["std"] }
8484
futures-core = "0.3.28"
8585
futures-util = "0.3.28"

deny.toml

+5
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ name = "webpki"
7777
expression = "LicenseRef-webpki"
7878
license-files = [{ path = "LICENSE", hash = 0x001c7e6c }]
7979

80+
[[licenses.clarify]]
81+
name = "rustls-webpki"
82+
expression = "LicenseRef-webpki"
83+
license-files = [{ path = "LICENSE", hash = 0x001c7e6c }]
84+
8085
# This section is considered when running `cargo deny check sources`.
8186
# More documentation about the 'sources' section can be found here:
8287
# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html

ethers-providers/src/rpc/transports/ws/backend.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ impl WsBackend {
7373
pub async fn connect_with_config(
7474
details: ConnectionDetails,
7575
config: WebSocketConfig,
76+
disable_nagle: bool,
7677
) -> Result<(Self, BackendDriver), WsClientError> {
77-
let ws = connect_async_with_config(details, Some(config)).await?.0.fuse();
78+
let ws = connect_async_with_config(details, Some(config), disable_nagle).await?.0.fuse();
7879
Ok(Self::new(ws))
7980
}
8081

ethers-providers/src/rpc/transports/ws/manager.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl RequestManager {
316316
#[cfg(not(target_arch = "wasm32"))]
317317
async fn reconnect_backend(&mut self) -> Result<(WsBackend, BackendDriver), WsClientError> {
318318
if let Some(config) = self.config {
319-
WsBackend::connect_with_config(self.conn.clone(), config).await
319+
WsBackend::connect_with_config(self.conn.clone(), config, false).await
320320
} else {
321321
WsBackend::connect(self.conn.clone()).await
322322
}

0 commit comments

Comments
 (0)