Skip to content

Commit

Permalink
download: starting is somethings slow. Added info logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
eras committed Jan 3, 2023
1 parent 281dd64 commit 13afed3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,13 @@ pub async fn download(
.build()
.await?;
let device_id = session.device_id.clone();
info!("Logging in");
client.restore_login(session).await?;

info!("Sync");
let first_sync_response = client.sync_once(sync_settings.clone()).await?;

info!("Retrieving event");
let uri = matrix_uri::MatrixUri::from_str(urls[0]).map_err(MatrixUriParseError)?;
let room_id = get_room_id_from_uri(&uri)?;
let room = client
Expand Down

0 comments on commit 13afed3

Please sign in to comment.