Skip to content

Commit 6e96391

Browse files
committed
sdk: clean up imports
1 parent 18f20a7 commit 6e96391

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/matrix-sdk/src/room/shared_room_history.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use std::iter;
1616

1717
use ruma::OwnedUserId;
18-
use tracing::instrument;
18+
use tracing::{info, instrument, warn};
1919

2020
use crate::{crypto::types::events::room_key_bundle::RoomKeyBundleContent, Error, Result, Room};
2121

@@ -33,11 +33,11 @@ pub async fn share_room_history(room: &Room, user_id: OwnedUserId) -> Result<()>
3333
None => None,
3434
};
3535
if own_identity.is_none() {
36-
tracing::warn!("Not sharing message history as cross-signing is not set up");
36+
warn!("Not sharing message history as cross-signing is not set up");
3737
return Ok(());
3838
}
3939

40-
tracing::info!("Sharing message history");
40+
info!("Sharing message history");
4141

4242
// 1. Construct the key bundle
4343
let bundle = {
@@ -47,7 +47,7 @@ pub async fn share_room_history(room: &Room, user_id: OwnedUserId) -> Result<()>
4747
};
4848

4949
if bundle.is_empty() {
50-
tracing::info!("No keys to share");
50+
info!("No keys to share");
5151
return Ok(());
5252
}
5353

@@ -56,7 +56,7 @@ pub async fn share_room_history(room: &Room, user_id: OwnedUserId) -> Result<()>
5656
let upload =
5757
client.upload_encrypted_file(&mime::APPLICATION_JSON, &mut (json.as_slice())).await?;
5858

59-
tracing::info!(
59+
info!(
6060
media_url = ?upload.url,
6161
shared_keys = bundle.room_keys.len(),
6262
withheld_keys = bundle.withheld.len(),

0 commit comments

Comments
 (0)