Skip to content

Commit

Permalink
algorithm() uses await when experimental-algorithms is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Jun 5, 2024
1 parent 7fc98c4 commit 515b3c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/matrix-sdk-crypto/src/olm/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ impl Session {
}

/// Get the [`EventEncryptionAlgorithm`] of this [`Session`].
#[allow(clippy::unused_async)] // The experimental-algorithms feature uses async code.
pub async fn algorithm(&self) -> EventEncryptionAlgorithm {
#[cfg(feature = "experimental-algorithms")]
if self.session_config().await.version() == 2 {
Expand Down

0 comments on commit 515b3c9

Please sign in to comment.