diff --git a/tuic-client/src/connection.rs b/tuic-client/src/connection.rs index 9ee3fdd..85bf474 100644 --- a/tuic-client/src/connection.rs +++ b/tuic-client/src/connection.rs @@ -71,8 +71,8 @@ impl Endpoint { let mut tp_cfg = TransportConfig::default(); tp_cfg - .max_concurrent_bidi_streams(VarInt::from(DEFAULT_CONCURRENT_STREAMS as u32)) - .max_concurrent_uni_streams(VarInt::from(DEFAULT_CONCURRENT_STREAMS as u32)) + .max_concurrent_bidi_streams(VarInt::from(DEFAULT_CONCURRENT_STREAMS)) + .max_concurrent_uni_streams(VarInt::from(DEFAULT_CONCURRENT_STREAMS)) .send_window(cfg.send_window) .stream_receive_window(VarInt::from_u32(cfg.receive_window)) .max_idle_timeout(None);