refactor(crypto): Lock GroupSessionCache::get to cfg(test)

This method is now only used by tests, so I opted to lock it
behind the test configuration to appease CI.

Signed-off-by: Skye Elliot <actuallyori@gmail.com>
This commit is contained in:
Skye Elliot
2026-03-17 15:16:18 +00:00
parent ba9e876dfe
commit 635fdd3f80

View File

@@ -123,6 +123,7 @@ impl GroupSessionCache {
///
/// * `room_id` - The id of the room for which we should get the outbound
/// group session.
#[cfg(test)]
fn get(&self, room_id: &RoomId) -> Option<OutboundGroupSession> {
self.sessions.read().get(room_id).cloned()
}