Roll back tokio and rocket update since ruma's request is at 0.2 tokio

This commit is contained in:
Devin Ragotzy 2021-01-18 19:59:08 -05:00
parent 3a6f264450
commit a897608025
4 changed files with 54 additions and 168 deletions

View file

@ -674,8 +674,7 @@ pub async fn sync_events_route(
if duration.as_secs() > 30 {
duration = Duration::from_secs(30);
}
let delay = tokio::time::sleep(duration);
tokio::pin!(delay);
let mut delay = tokio::time::delay_for(duration);
tokio::select! {
_ = &mut delay => {}
_ = watcher => {}