Increase delay between log requests

This commit is contained in:
Joscha 2022-08-06 02:02:55 +02:00
parent 345170698f
commit 8b66de44e0
2 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## Unreleased ## Unreleased
### Changed
- Slowed down room history download speed
## v0.1.0 - 2022-08-06 ## v0.1.0 - 2022-08-06
Initial release Initial release

View file

@ -144,7 +144,7 @@ impl State {
async fn regularly_request_logs(event_tx: &mpsc::UnboundedSender<Event>) { async fn regularly_request_logs(event_tx: &mpsc::UnboundedSender<Event>) {
loop { loop {
tokio::time::sleep(Duration::from_secs(2)).await; // TODO Make configurable tokio::time::sleep(Duration::from_secs(10)).await; // TODO Make configurable
let _ = event_tx.send(Event::RequestLogs); let _ = event_tx.send(Event::RequestLogs);
} }
} }