Split pusher service send/request into unit.

Refactor sender's push destination handler.

Combine remnants of service::rooms::user with pusher service.

Further split and reorg pusher service units.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-10-27 15:55:55 +00:00
parent 563873af77
commit 5e89f0acae
13 changed files with 565 additions and 589 deletions

View File

@@ -49,7 +49,6 @@ pub struct Services {
pub threads: Arc<rooms::threads::Service>,
pub timeline: Arc<rooms::timeline::Service>,
pub typing: Arc<rooms::typing::Service>,
pub user: Arc<rooms::user::Service>,
pub federation: Arc<federation::Service>,
pub sending: Arc<sending::Service>,
pub server_keys: Arc<server_keys::Service>,
@@ -107,7 +106,6 @@ pub async fn build(server: Arc<Server>) -> Result<Arc<Self>> {
threads: rooms::threads::Service::build(&args)?,
timeline: rooms::timeline::Service::build(&args)?,
typing: rooms::typing::Service::build(&args)?,
user: rooms::user::Service::build(&args)?,
federation: federation::Service::build(&args)?,
sending: sending::Service::build(&args)?,
server_keys: server_keys::Service::build(&args)?,
@@ -166,7 +164,6 @@ pub(crate) fn services(&self) -> impl Iterator<Item = Arc<dyn Service>> + Send {
cast!(self.threads),
cast!(self.timeline),
cast!(self.typing),
cast!(self.user),
cast!(self.federation),
cast!(self.sending),
cast!(self.server_keys),