mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 15:25:32 +00:00
Use the threaded scheduler in the runtime
This commit is contained in:
parent
453012c9bf
commit
68937221f3
@ -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")
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user