@@ -16,10 +16,7 @@ use std::time::Duration;
16
16
use std:: { marker:: PhantomData , num:: NonZeroUsize , sync:: Arc } ;
17
17
18
18
use futures_util:: future:: BoxFuture ;
19
- use ratchet:: {
20
- deflate:: { DeflateConfig , DeflateExtProvider } ,
21
- WebSocketStream ,
22
- } ;
19
+ use ratchet:: WebSocketStream ;
23
20
use rustls:: crypto:: CryptoProvider ;
24
21
25
22
pub use commander:: { CommandError , Commander } ;
@@ -71,7 +68,7 @@ const DEFAULT_CLOSE_TIMEOUT: Duration = Duration::from_secs(5);
71
68
pub struct WebSocketConfig {
72
69
pub max_message_size : usize ,
73
70
#[ cfg( feature = "deflate" ) ]
74
- pub deflate_config : Option < DeflateConfig > ,
71
+ pub deflate_config : Option < ratchet :: DeflateConfig > ,
75
72
}
76
73
77
74
impl Default for WebSocketConfig {
@@ -137,7 +134,7 @@ impl SwimClientBuilder {
137
134
138
135
/// Sets the deflate extension configuration for WebSocket connections.
139
136
#[ cfg( feature = "deflate" ) ]
140
- pub fn set_deflate_config ( mut self , to : DeflateConfig ) -> SwimClientBuilder {
137
+ pub fn set_deflate_config ( mut self , to : ratchet :: DeflateConfig ) -> SwimClientBuilder {
141
138
self . client_config . websocket . deflate_config = Some ( to) ;
142
139
self
143
140
}
@@ -229,8 +226,9 @@ where
229
226
max_message_size : websocket. max_message_size ,
230
227
} ) ;
231
228
232
- let provider =
233
- DeflateExtProvider :: with_config ( websocket. deflate_config . unwrap_or_default ( ) ) ;
229
+ let provider = ratchet:: DeflateExtProvider :: with_config (
230
+ websocket. deflate_config . unwrap_or_default ( ) ,
231
+ ) ;
234
232
235
233
start_runtime (
236
234
registration_buffer_size,
@@ -258,7 +256,7 @@ where
258
256
Transport :: new (
259
257
networking,
260
258
websockets,
261
- NoExtProvider ,
259
+ ratchet :: NoExtProvider ,
262
260
remote_buffer_size,
263
261
close_timeout,
264
262
) ,
0 commit comments