zebrad: explicitly select the threaded scheduler.

This commit is contained in:
Henry de Valence 2020-11-12 20:32:23 -08:00
parent 6de824bd99
commit e55392b61e
1 changed files with 7 additions and 1 deletions

View File

@ -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(),
),
})
}
}