Skip to content

Commit

Permalink
refactor(ui): Replace tokio::spawn with matrix_sdk::executor::spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Jan 9, 2025
1 parent 62e2a9b commit 4021a2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 7 additions & 7 deletions crates/matrix-sdk-ui/src/sync_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ use std::sync::{Arc, Mutex};
use eyeball::{SharedObservable, Subscriber};
use futures_core::Future;
use futures_util::{pin_mut, StreamExt as _};
use matrix_sdk::Client;
use matrix_sdk::{
executor::{spawn, JoinHandle},
Client,
};
use thiserror::Error;
use tokio::{
sync::{
mpsc::{Receiver, Sender},
Mutex as AsyncMutex, OwnedMutexGuard,
},
task::{spawn, JoinHandle},
use tokio::sync::{
mpsc::{Receiver, Sender},
Mutex as AsyncMutex, OwnedMutexGuard,
};
use tracing::{error, info, instrument, trace, warn, Instrument, Level};

Expand Down
8 changes: 5 additions & 3 deletions crates/matrix-sdk-ui/src/unable_to_decrypt_hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ use std::{
};

use growable_bloom_filter::{GrowableBloom, GrowableBloomBuilder};
use matrix_sdk::{crypto::types::events::UtdCause, Client};
use matrix_sdk::{
crypto::types::events::UtdCause,
executor::{spawn, JoinHandle},
Client,
};
use matrix_sdk_base::{StateStoreDataKey, StateStoreDataValue, StoreError};
use ruma::{
time::{Duration, Instant},
EventId, MilliSecondsSinceUnixEpoch, OwnedEventId, OwnedServerName, UserId,
};
use tokio::{
spawn,
sync::{Mutex as AsyncMutex, MutexGuard},
task::JoinHandle,
time::sleep,
};
use tracing::error;
Expand Down

0 comments on commit 4021a2b

Please sign in to comment.