Skip to content

Commit

Permalink
Add explicit multi_threaded_executor() fn to server builder
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Aug 2, 2021
1 parent 7a2dd0f commit d1c9e68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,10 @@ impl ServerBuilder {
self.config.performance.single_threaded_executor = true;
self
}

/// Configures the server to use a multi-threaded executor.
pub fn multi_threaded_executor(mut self) -> Self {
self.config.performance.single_threaded_executor = false;
self
}
}

0 comments on commit d1c9e68

Please sign in to comment.