Disable option to allow multiple async rpc workers.

This commit is contained in:
Simon
2016-09-01 17:02:11 -07:00
parent 14af21e9f7
commit 008fccfa48
2 changed files with 7 additions and 3 deletions

View File

@@ -746,8 +746,10 @@ void StartRPCThreads()
fRPCRunning = true;
g_rpcSignals.Started();
// Launch at least one async rpc worker
// Launch one async rpc worker. The ability to launch multiple workers is not recommended at present and thus the option is disabled.
async_rpc_queue = std::make_shared<AsyncRPCQueue>();
async_rpc_queue->addWorker();
/*
int n = GetArg("-rpcasyncthreads", 1);
if (n<1) {
LogPrintf("ERROR: Invalid value %d for -rpcasyncthreads. Must be at least 1.\n", n);
@@ -758,7 +760,7 @@ void StartRPCThreads()
}
for (int i = 0; i < n; i++)
async_rpc_queue->addWorker();
*/
}
void StartDummyRPCThread()