use AsyncClient::sync_forever
parent
87c9dbdad7
commit
a5ab7d97da
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue