rename api::client_server to api::client

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-06 18:21:02 +00:00
parent 8428f43c78
commit f32380772f
42 changed files with 149 additions and 154 deletions

View file

@ -6,10 +6,7 @@ use ruma::{
directory::Filter,
};
use crate::{
client_server::{self},
services, Error, Result, Ruma,
};
use crate::{services, Error, Result, Ruma};
/// # `POST /_matrix/federation/v1/publicRooms`
///
@ -24,7 +21,7 @@ pub(crate) async fn get_public_rooms_filtered_route(
return Err(Error::BadRequest(ErrorKind::forbidden(), "Room directory is not public"));
}
let response = client_server::get_public_rooms_filtered_helper(
let response = crate::client::get_public_rooms_filtered_helper(
None,
body.limit,
body.since.as_deref(),
@ -55,7 +52,7 @@ pub(crate) async fn get_public_rooms_route(
return Err(Error::BadRequest(ErrorKind::forbidden(), "Room directory is not public"));
}
let response = client_server::get_public_rooms_filtered_helper(
let response = crate::client::get_public_rooms_filtered_helper(
None,
body.limit,
body.since.as_deref(),

View file

@ -7,7 +7,7 @@ use ruma::api::{
};
use crate::{
client_server::{claim_keys_helper, get_keys_helper},
client::{claim_keys_helper, get_keys_helper},
service::user_is_local,
services, Error, Result, Ruma,
};