service/appservice: fix weird indirection through global services

This commit is contained in:
Lambda 2024-05-11 15:03:52 +00:00 committed by Charles Hall
parent ad7a5ea777
commit 4aab4c9b2e
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -138,9 +138,7 @@ impl Service {
/// Registers an appservice and returns the ID to the caller. /// Registers an appservice and returns the ID to the caller.
pub(crate) async fn register_appservice(&self, yaml: Registration) -> Result<String> { pub(crate) async fn register_appservice(&self, yaml: Registration) -> Result<String> {
//TODO: Check for collisions between exclusive appservice namespaces //TODO: Check for collisions between exclusive appservice namespaces
services() self.registration_info
.appservice
.registration_info
.write() .write()
.await .await
.insert(yaml.id.clone(), yaml.clone().try_into()?); .insert(yaml.id.clone(), yaml.clone().try_into()?);