main: Implement exponential backoff in the feed fetcher loop

Backoff with an exponentially increasing delay when feeds can't be
fetched or parsed, with a maximum of 6h (after which retry every 6h)
This commit is contained in:
2025-05-03 15:09:13 +00:00
parent 5c009476d6
commit c8c9021b78
4 changed files with 11 additions and 5 deletions

View File

@ -98,7 +98,7 @@ pub async fn login_and_sync<T: Clone>(
client
.matrix_auth()
.login_username(username, password)
.initial_device_display_name("bender v0.1.3")
.initial_device_display_name("bender v0.1.4")
.await?;
info!("logged in as {username}");