mirror of https://github.com/raftario/filite.git
Fix small tokio rt stuff
This commit is contained in:
parent
af4c13ac88
commit
0e76038bbc
|
@ -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]
|
||||
|
|
|
@ -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")]
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue