de-global services for services

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-07-27 08:26:42 +00:00
1 parent 992c0a1e58
commit 010e4ee35a
85 files changed
+2480 -1887

No files matched your search

+1 -2
View File
@@ -4,7 +4,6 @@ use ruma::{
api::{client::error::ErrorKind, federation::event::get_event},
MilliSecondsSinceUnixEpoch, RoomId,
};
use service::sending::convert_to_outgoing_federation_event;
use crate::Ruma;
@@ -50,6 +49,6 @@ pub(crate) async fn get_event_route(
Ok(get_event::v1::Response {
origin: services.globals.server_name().to_owned(),
origin_server_ts: MilliSecondsSinceUnixEpoch::now(),
pdu: convert_to_outgoing_federation_event(event),
pdu: services.sending.convert_to_outgoing_federation_event(event),
})
}