mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-23 00:27:39 -04:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user