use BytesMut instead of vec

This commit is contained in:
Σrebe - Romain GERARD 2023-10-27 09:15:15 +02:00
parent f813d925d6
commit b70d547370
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
5 changed files with 43 additions and 41 deletions

View file

@ -451,7 +451,7 @@ pub struct WsClientConfig {
pub http_upgrade_path_prefix: String,
pub http_upgrade_credentials: Option<HeaderValue>,
pub http_headers: HashMap<HeaderName, HeaderValue>,
pub host_http_header: HeaderValue,
pub http_header_host: HeaderValue,
pub timeout_connect: Duration,
pub websocket_ping_frequency: Duration,
pub websocket_mask_frame: bool,
@ -551,7 +551,7 @@ async fn main() {
.into_iter()
.filter(|(k, _)| k != HOST)
.collect(),
host_http_header: host_header,
http_header_host: host_header,
timeout_connect: Duration::from_secs(10),
websocket_ping_frequency: args
.websocket_ping_frequency_sec