server main: start gotham with one thread per cpu
This commit is contained in:
parent
ebf76784e7
commit
84dc2023ee
|
@ -169,5 +169,5 @@ fn main() {
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
gotham::start("0.0.0.0:8400", router);
|
gotham::start_with_num_threads("0.0.0.0:8400", router, cpus);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue