mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
chore: Remove redundant client IP extractions on individual routes
This commit is contained in:
1 parent
1e47090f5d
commit
789589ef37
26 files changed
+71
-205
No files matched your search
@@ -9,7 +9,7 @@ use crate::{Ruma, client_ip::ClientIp};
|
||||
/// Sets the typing state of the sender user.
|
||||
pub(crate) async fn create_typing_event_route(
|
||||
State(services): State<crate::State>,
|
||||
ClientIp(ip): ClientIp,
|
||||
ClientIp(ip): ClientIp, // NOTE: Required for updating device metadata
|
||||
body: Ruma<create_typing_event::v3::Request>,
|
||||
) -> Result<create_typing_event::v3::Response> {
|
||||
use create_typing_event::v3::Typing;
|
||||
|
||||
Reference in new issue
Block a user