zebrad: explicitly select the threaded scheduler.
This commit is contained in:
parent
6de824bd99
commit
e55392b61e
|
@ -21,7 +21,13 @@ pub struct TokioComponent {
|
|||
impl TokioComponent {
|
||||
pub fn new() -> Result<Self, FrameworkError> {
|
||||
Ok(Self {
|
||||
rt: Some(Runtime::new().unwrap()),
|
||||
rt: Some(
|
||||
tokio::runtime::Builder::new()
|
||||
.enable_all()
|
||||
.threaded_scheduler()
|
||||
.build()
|
||||
.unwrap(),
|
||||
),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue