Skip to content

Commit cf680cc

Browse files
committed
Added architecture configuration to skip WASM
Signed-off-by: carlosb1 <[email protected]>
1 parent 2f4c5e6 commit cf680cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/indexes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ impl Index {
697697
/// # movie_index.delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
698698
/// # });
699699
/// ```
700+
#[cfg(not(target_arch = "wasm32"))]
700701
pub async fn update_documents_ndjson<T: futures_io::AsyncRead + Send + Sync + 'static>(
701702
&self,
702703
payload: T,
@@ -742,6 +743,7 @@ impl Index {
742743
/// # movie_index.delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
743744
/// # });
744745
/// ```
746+
#[cfg(not(target_arch = "wasm32"))]
745747
pub async fn add_documents_ndjson<T: futures_io::AsyncRead + Send + Sync + 'static>(
746748
&self,
747749
payload: T,

0 commit comments

Comments
 (0)