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

2
Cargo.lock generated
View File

@ -1295,7 +1295,7 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
[[package]]
name = "matrix-feedbot"
version = "0.1.2"
version = "0.1.4"
dependencies = [
"anyhow",
"chrono",