fix clippy errs

This commit is contained in:
2026-08-24 11:53:43 +01:00
parent 2652f09485
commit e0af9c515a
5 changed files with 36 additions and 21 deletions
+11 -3
View File
@@ -28,7 +28,9 @@ async fn main() {
loop {
tokio::time::sleep(CHAT_RESET_INTERVAL).await;
reset_state.clear_everything();
tracing::info!("Cleared all in-memory chat sessions, messages, notifiers, and rate limits");
tracing::info!(
"Cleared all in-memory chat sessions, messages, notifiers, and rate limits"
);
}
});
@@ -38,9 +40,15 @@ async fn main() {
.route("/supporter", get(handlers::pages::supporter_page))
.route("/reset-countdown", get(handlers::pages::reset_countdown))
.route("/ws/user/:session_id", get(handlers::ws::user_ws))
.route("/ws/supporter/:supporter_id", get(handlers::ws::supporter_ws))
.route(
"/ws/supporter/:supporter_id",
get(handlers::ws::supporter_ws),
)
.route("/messages/:session_id", get(handlers::chat::get_messages))
.route("/supporter/messages/:session_id", get(handlers::chat::get_supporter_messages))
.route(
"/supporter/messages/:session_id",
get(handlers::chat::get_supporter_messages),
)
.route("/send/:session_id", post(handlers::chat::send_message))
.route(
"/supporter/send/:session_id",