Skip to content

Commit 06d2961

Browse files
committed
fix(sdk): Use spanw from matrix_sdk_common to make it compatible with wasm32-u-u.
1 parent f96286b commit 06d2961

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/matrix-sdk/src/sliding_sync/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ use async_stream::stream;
3636
pub use client::{Version, VersionBuilder};
3737
use futures_core::stream::Stream;
3838
pub use matrix_sdk_base::sliding_sync::http;
39-
use matrix_sdk_common::{deserialized_responses::SyncTimelineEvent, timer};
39+
use matrix_sdk_common::{deserialized_responses::SyncTimelineEvent, executor::spawn, timer};
4040
use ruma::{
4141
api::{client::error::ErrorKind, OutgoingRequest},
4242
assign, OwnedEventId, OwnedRoomId, RoomId,
4343
};
4444
use serde::{Deserialize, Serialize};
4545
use tokio::{
46-
select, spawn,
46+
select,
4747
sync::{broadcast::Sender, Mutex as AsyncMutex, OwnedMutexGuard, RwLock as AsyncRwLock},
4848
};
4949
use tracing::{debug, error, info, instrument, trace, warn, Instrument, Span};

crates/matrix-sdk/src/sliding_sync/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
task::{Context, Poll},
77
};
88

9-
use tokio::task::{JoinError, JoinHandle};
9+
use matrix_sdk_common::executor::{JoinError, JoinHandle};
1010

1111
/// Private type to ensure a task is aborted on drop.
1212
pub(crate) struct AbortOnDrop<T>(JoinHandle<T>);

0 commit comments

Comments
 (0)