completely strike knowledge of the server from the moderation service

This commit is contained in:
Jacob Taylor 2025-04-25 21:36:04 -07:00
parent 78c2a07524
commit ebfbca59a7

View file

@ -1,6 +1,6 @@
use std::sync::Arc; use std::sync::Arc;
use conduwuit::{Result, Server, implement}; use conduwuit::{Result, implement};
use ruma::ServerName; use ruma::ServerName;
use crate::{Dep, config}; use crate::{Dep, config};
@ -10,16 +10,14 @@ pub struct Service {
} }
struct Services { struct Services {
pub server: Arc<Server>, pub config: Dep<config::Service>
pub config: Dep<config::Service>,
} }
impl crate::Service for Service { impl crate::Service for Service {
fn build(args: crate::Args<'_>) -> Result<Arc<Self>> { fn build(args: crate::Args<'_>) -> Result<Arc<Self>> {
Ok(Arc::new(Self { Ok(Arc::new(Self {
services: Services { services: Services {
server: args.server.clone(), config: args.depend::<config::Service>("config")
config: args.depend::<config::Service>("config"),
}, },
})) }))
} }