use AsyncClient::sync_forever

master
Devin R 2020-04-14 15:16:20 -04:00
parent 87c9dbdad7
commit a5ab7d97da
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ async fn login_and_sync(
println!("logged in as {}", username); println!("logged in as {}", username);
client.sync(SyncSettings::new()).await.unwrap(); client.sync_forever(SyncSettings::new(), |_| async {}).await;
Ok(()) Ok(())
} }