merge and resplit/cleanup appservice service

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-24 10:58:08 +00:00
parent efb28c1a99
commit 9438dc89e6
5 changed files with 157 additions and 181 deletions

View file

@ -26,11 +26,7 @@ pub(super) async fn process(subcommand: AppserviceCommand, context: &Command<'_>
appservice_id,
} => {
let timer = tokio::time::Instant::now();
let results = services
.appservice
.db
.get_registration(appservice_id.as_ref())
.await;
let results = services.appservice.get_registration(&appservice_id).await;
let query_time = timer.elapsed();