Add query for alias existing; tweak tracing spans.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-09-02 15:04:24 +00:00
parent 3deebeab78
commit f6c88e3a16

View File

@@ -150,7 +150,7 @@ impl Service {
)
}
#[tracing::instrument(skip(self), level = "debug")]
#[tracing::instrument(skip(self), level = "trace")]
pub async fn resolve_local_alias(&self, alias: &RoomAliasId) -> Result<OwnedRoomId> {
self.db
.alias_roomid
@@ -159,6 +159,15 @@ impl Service {
.deserialized()
}
#[tracing::instrument(skip(self), level = "trace")]
pub async fn local_alias_exists(&self, alias: &RoomAliasId) -> bool {
self.db
.alias_roomid
.exists(alias.alias())
.await
.is_ok()
}
#[tracing::instrument(skip(self), level = "debug")]
pub fn local_aliases_for_room<'a>(
&'a self,
@@ -264,6 +273,7 @@ impl Service {
Ok(None)
}
#[tracing::instrument(skip(self, appservice_info), level = "trace")]
pub async fn appservice_checks(
&self,
room_alias: &RoomAliasId,