Fix deprecation warning: 'tokio::runtime::Builder::num_threads' -> 'core_threads'.

This commit is contained in:
Jeb Rosen 2020-01-11 17:22:50 -08:00 committed by Sergio Benitez
parent c9d0af09d6
commit 85761c08e3
1 changed files with 1 additions and 1 deletions

View File

@ -892,7 +892,7 @@ impl Rocket {
// Initialize the tokio runtime
let mut runtime = tokio::runtime::Builder::new()
.threaded_scheduler()
.num_threads(self.config.workers as usize)
.core_threads(self.config.workers as usize)
.enable_all()
.build()
.expect("Cannot build runtime!");