use AsyncClient::sync_forever
This commit is contained in:
parent
87c9dbdad7
commit
a5ab7d97da
1 changed files with 1 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue