Skip to content

Commit

Permalink
Move ThreadManagerType enum to ThriftServer
Browse files Browse the repository at this point in the history
Summary:
# Project goal
As part of Better Engineering effort, merge `BaseThriftServer` class into `ThriftServer` class to simplify and unify server development process.

# Iterative change
Move `ThreadManagerType` enum to `ThriftServer`, as part 2 of `ThreadManager` move.

Rename `BaseThriftServer::ThreadManagerType` to `ThriftServer::ThreadManagerType` in all files in fbcode.

Reviewed By: fadimounir

Differential Revision: D55542271

fbshipit-source-id: 09e560fa9f07c07998db1e3bc3cb34cea752c858
  • Loading branch information
kaczmarekmhl authored and facebook-github-bot committed Apr 2, 2024
1 parent bcf44cb commit ded122c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openr/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ main(int argc, char** argv) {
if (config->isNetlinkFibHandlerEnabled()) {
netlinkFibServer = std::make_unique<apache::thrift::ThriftServer>();
netlinkFibServer->setThreadManagerType(
apache::thrift::BaseThriftServer::ThreadManagerType::PRIORITY_QUEUE);
apache::thrift::ThriftServer::ThreadManagerType::PRIORITY_QUEUE);
netlinkFibServer->setNumCPUWorkerThreads(2 /* num of threads */);
netlinkFibServer->setCPUWorkerThreadName("ThriftCpuPool");

Expand Down

0 comments on commit ded122c

Please sign in to comment.