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

@@ -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 {