Configuring tokio for linux environment
This commit is contained in:
parent
30db8b31e7
commit
f00e246ce7
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
// Manually configure the Tokio runtime
|
// Manually configure the Tokio runtime
|
||||||
let runtime: Result<()> = tokio::runtime::Builder::new_multi_thread()
|
let runtime: Result<()> = tokio::runtime::Builder::new_multi_thread()
|
||||||
|
.enable_io()
|
||||||
.worker_threads(num_cpus::get())
|
.worker_threads(num_cpus::get())
|
||||||
// .worker_threads(NUM_THREADS)
|
// .worker_threads(NUM_THREADS)
|
||||||
.build()?
|
.build()?
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue