Revert back to actix 0.10
Some checks failed
Core Repos/ImageApi/pipeline/head Something is wrong with the build of this commit
Core Repos/ImageApi/pipeline/pr-master This commit looks good

Until Actix Web 4, we need to use an older version of actix so that the
runtime's match up to version 1.
This commit is contained in:
Cameron Cordes
2021-03-29 14:59:42 -04:00
parent 2a07fd18b5
commit 1b2aad0f08
4 changed files with 106 additions and 160 deletions

View File

@@ -67,7 +67,7 @@ pub async fn create_playlist(video_path: &str, playlist_file: &str) -> Result<Ch
let start_time = std::time::Instant::now();
loop {
actix::clock::sleep(std::time::Duration::from_secs(1)).await;
actix::clock::delay_for(std::time::Duration::from_secs(1)).await;
if Path::new(playlist_file).exists()
|| std::time::Instant::now() - start_time > std::time::Duration::from_secs(5)