use AsyncClient::sync_forever

This commit is contained in:
Devin R 2020-04-14 15:16:20 -04:00
parent 87c9dbdad7
commit a5ab7d97da

View file

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