mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
Disable Nagle algorithm (#7932)
* Disable Nagle algorithm * Oops, didn't compile
This commit is contained in:
@@ -60,7 +60,7 @@ pub fn build_transport(
|
||||
};
|
||||
#[cfg(not(target_os = "unknown"))]
|
||||
let transport = transport.or_transport(if !memory_only {
|
||||
let desktop_trans = tcp::TcpConfig::new();
|
||||
let desktop_trans = tcp::TcpConfig::new().nodelay(true);
|
||||
let desktop_trans = websocket::WsConfig::new(desktop_trans.clone())
|
||||
.or_transport(desktop_trans);
|
||||
OptionalTransport::some(if let Ok(dns) = dns::DnsConfig::new(desktop_trans.clone()) {
|
||||
|
||||
Reference in New Issue
Block a user