fix clippy errs
This commit is contained in:
+11
-3
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user