From 4826ff99d8e946380f3d5388d33a699d1daafe4b Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 4 Feb 2022 10:52:40 +0100 Subject: [PATCH] proxmox-http: websocket: fix comment about callback this was once a callback in an early version, but it changed to a channel, but the comment was not updated Signed-off-by: Dominik Csapak --- proxmox-http/src/websocket/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxmox-http/src/websocket/mod.rs b/proxmox-http/src/websocket/mod.rs index 824dc45c..551a6777 100644 --- a/proxmox-http/src/websocket/mod.rs +++ b/proxmox-http/src/websocket/mod.rs @@ -467,7 +467,8 @@ type WebSocketReadResult = Result<(OpCode, Box<[u8]>), WebSocketError>; /// /// On read, reads the underlying reader and tries to decode the frames and /// simply returns the data stream. -/// When it encounters a control frame, calls the given callback. +/// When it encounters a control frame, sends it via the given sender +/// to a channel /// /// Has an internal Buffer for storing incomplete headers. pub struct WebSocketReader { @@ -479,7 +480,7 @@ pub struct WebSocketReader { } impl WebSocketReader { - /// Creates a new WebSocketReader with the given CallBack for control frames + /// Creates a new WebSocketReader with the given sender for control frames /// and a default buffer size of 4096. pub fn new( reader: R,