Skip to content

Commit

Permalink
http: make ws_push_all_channels() take a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Nov 14, 2024
1 parent ee16fe0 commit 51369db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ impl HttpServer {

/// Push a WebSocket message to all channels on a given path.
pub fn ws_push_all_channels(&self, path: &str, message_type: WsMessageType, blob: KiBlob) {
ws_push_all_channels(self.ws_channels, path, message_type, blob);
ws_push_all_channels(&self.ws_channels, path, message_type, blob);
}

pub fn get_ws_channels(&self) -> HashMap<String, HashSet<u32>> {
Expand Down Expand Up @@ -1080,7 +1080,7 @@ pub fn send_ws_push(channel_id: u32, message_type: WsMessageType, blob: KiBlob)
}

pub fn ws_push_all_channels(
ws_channels: HashMap<String, HashSet<u32>>,
ws_channels: &HashMap<String, HashSet<u32>>,
path: &str,
message_type: WsMessageType,
blob: KiBlob,
Expand Down

0 comments on commit 51369db

Please sign in to comment.