Revert back to actix 0.10
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:
1 parent
2a07fd18b5
commit
1b2aad0f08
4 files changed
+106
-160
No files matched your search
+2
-2
@@ -11,7 +11,7 @@ use std::sync::mpsc::channel;
|
||||
use std::sync::Arc;
|
||||
use std::{env, fs::File};
|
||||
|
||||
use actix::{Actor, Addr};
|
||||
use actix::prelude::*;
|
||||
use actix_files::NamedFile;
|
||||
use actix_multipart as mp;
|
||||
use actix_web::{
|
||||
@@ -401,7 +401,7 @@ fn main() -> std::io::Result<()> {
|
||||
}
|
||||
});
|
||||
|
||||
let system = actix::System::new();
|
||||
let system = actix::System::new("image-api");
|
||||
let act = StreamActor {}.start();
|
||||
|
||||
let app_data = web::Data::new(AppState {
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user