Fix small tokio rt stuff

This commit is contained in:
Raphaël Thériault 2020-06-24 02:49:22 -04:00
parent af4c13ac88
commit 0e76038bbc
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.55"
sqlx = { version = "0.3.5", features = ["chrono", "runtime-tokio"], default-features = false }
structopt = "0.3.15"
tokio = { version = "0.2.21", features = ["blocking", "fs"] }
tokio = { version = "0.2.21", features = ["blocking", "fs", "rt-core"] }
warp = { version = "0.2.3", features = ["multipart"], default-features = false }
[features]

View File

@ -6,7 +6,7 @@ use tokio::runtime::{Builder, Runtime};
#[cfg_attr(not(feature = "threaded"), allow(unused_variables))]
pub fn build(config: &Config) -> Result<Runtime, Error> {
let mut builder = Builder::new();
builder.basic_scheduler().enable_io();
builder.basic_scheduler().enable_all();
#[cfg(feature = "threaded")]
{