add worker_affinity feature

split runtime init from main.rs

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-12-17 14:32:54 +00:00 committed by strawberry
commit 71673b2a88
6 changed files with 212 additions and 54 deletions

View file

@ -23,7 +23,7 @@ pub(crate) struct Server {
}
impl Server {
pub(crate) fn build(
pub(crate) fn new(
args: &Args,
runtime: Option<&runtime::Handle>,
) -> Result<Arc<Self>, Error> {