Use the threaded scheduler in the runtime

This commit is contained in:
John-John Tedro 2020-01-15 15:51:03 +01:00
parent 453012c9bf
commit 68937221f3

View file

@ -28,7 +28,7 @@ use query_macros::*;
#[cfg(feature = "runtime-tokio")]
lazy_static::lazy_static! {
static ref BASIC_RUNTIME: tokio::runtime::Runtime = {
tokio::runtime::Builder::new().basic_scheduler().enable_all().build().expect("failed to build tokio runtime")
tokio::runtime::Builder::new().threaded_scheduler().enable_all().build().expect("failed to build tokio runtime")
};
}