Skip to content

Commit

Permalink
fixup: Get FinderCryptoStore to compile on WASM too
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Jul 2, 2024
1 parent deb0517 commit 4ad12a0
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ impl<'a, S: FinderCryptoStore> SenderDataFinder<'a, S> {
}
}

#[async_trait]
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
pub(crate) trait FinderCryptoStore {
async fn get_device_from_curve_key(
&self,
Expand All @@ -361,7 +362,8 @@ pub(crate) trait FinderCryptoStore {
) -> OlmResult<Option<ReadOnlyUserIdentities>>;
}

#[async_trait]
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
impl FinderCryptoStore for Store {
async fn get_device_from_curve_key(
&self,
Expand Down Expand Up @@ -862,7 +864,8 @@ mod tests {
}
}

#[async_trait]
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
impl FinderCryptoStore for FakeCryptoStore {
async fn get_device_from_curve_key(
&self,
Expand Down

0 comments on commit 4ad12a0

Please sign in to comment.