From a998ce8ed841933b7e66b1625435570217b36258 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 30 Aug 2023 15:40:53 +0100 Subject: [PATCH] fix description of `send_to_broadcast_ws` handler --- websockets/echo-actorless/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/websockets/echo-actorless/src/main.rs b/websockets/echo-actorless/src/main.rs index f449b60d..8e7b34e9 100644 --- a/websockets/echo-actorless/src/main.rs +++ b/websockets/echo-actorless/src/main.rs @@ -38,8 +38,8 @@ async fn echo_ws(req: HttpRequest, stream: web::Payload) -> Result>, ) -> Result { @@ -81,7 +81,7 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/ws-basic").route(web::get().to(echo_ws))) .app_data(web::Data::new(tx.clone())) .service(web::resource("/ws-broadcast").route(web::get().to(broadcast_ws))) - .service(web::resource("/send").route(web::post().to(send))) + .service(web::resource("/send").route(web::post().to(send_to_broadcast_ws))) // enable logger .wrap(middleware::Logger::default()) })