Skip to content

Commit

Permalink
Fixed bad module names.
Browse files Browse the repository at this point in the history
  • Loading branch information
horned-sphere committed Jun 26, 2024
1 parent a993d3e commit fd6a084
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swimos_client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const DEFAULT_CLOSE_TIMEOUT: Duration = Duration::from_secs(5);
pub struct WebSocketConfig {
pub max_message_size: usize,
#[cfg(feature = "deflate")]
pub deflate_config: Option<ratchet::DeflateConfig>,
pub deflate_config: Option<ratchet::deflate::DeflateConfig>,
}

impl Default for WebSocketConfig {
Expand Down Expand Up @@ -134,7 +134,7 @@ impl SwimClientBuilder {

/// Sets the deflate extension configuration for WebSocket connections.
#[cfg(feature = "deflate")]
pub fn set_deflate_config(mut self, to: ratchet::DeflateConfig) -> SwimClientBuilder {
pub fn set_deflate_config(mut self, to: ratchet::deflate::DeflateConfig) -> SwimClientBuilder {
self.client_config.websocket.deflate_config = Some(to);
self
}
Expand Down Expand Up @@ -226,7 +226,7 @@ where
max_message_size: websocket.max_message_size,
});

let provider = ratchet::DeflateExtProvider::with_config(
let provider = ratchet::deflate::DeflateExtProvider::with_config(
websocket.deflate_config.unwrap_or_default(),
);

Expand Down

0 comments on commit fd6a084

Please sign in to comment.