Add query for alias existing; tweak tracing spans.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-09-05 05:45:41 +00:00
1 parent 3deebeab78
commit f6c88e3a16
1 file changed
+11 -1
+11 -1
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,