mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-31 07:51:23 +02:00
Remove unused argument to ThreadHTTP(...)
This commit is contained in:
@@ -279,7 +279,7 @@ static void http_reject_request_cb(struct evhttp_request* req, void*)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Event dispatcher thread */
|
/** Event dispatcher thread */
|
||||||
static bool ThreadHTTP(struct event_base* base, struct evhttp* http)
|
static bool ThreadHTTP(struct event_base* base)
|
||||||
{
|
{
|
||||||
RenameThread("bitcoin-http");
|
RenameThread("bitcoin-http");
|
||||||
LogPrint(BCLog::HTTP, "Entering http event loop\n");
|
LogPrint(BCLog::HTTP, "Entering http event loop\n");
|
||||||
@@ -428,9 +428,9 @@ bool StartHTTPServer()
|
|||||||
LogPrint(BCLog::HTTP, "Starting HTTP server\n");
|
LogPrint(BCLog::HTTP, "Starting HTTP server\n");
|
||||||
int rpcThreads = std::max((long)gArgs.GetArg("-rpcthreads", DEFAULT_HTTP_THREADS), 1L);
|
int rpcThreads = std::max((long)gArgs.GetArg("-rpcthreads", DEFAULT_HTTP_THREADS), 1L);
|
||||||
LogPrintf("HTTP: starting %d worker threads\n", rpcThreads);
|
LogPrintf("HTTP: starting %d worker threads\n", rpcThreads);
|
||||||
std::packaged_task<bool(event_base*, evhttp*)> task(ThreadHTTP);
|
std::packaged_task<bool(event_base*)> task(ThreadHTTP);
|
||||||
threadResult = task.get_future();
|
threadResult = task.get_future();
|
||||||
threadHTTP = std::thread(std::move(task), eventBase, eventHTTP);
|
threadHTTP = std::thread(std::move(task), eventBase);
|
||||||
|
|
||||||
for (int i = 0; i < rpcThreads; i++) {
|
for (int i = 0; i < rpcThreads; i++) {
|
||||||
g_thread_http_workers.emplace_back(HTTPWorkQueueRun, workQueue);
|
g_thread_http_workers.emplace_back(HTTPWorkQueueRun, workQueue);
|
||||||
|
Reference in New Issue
Block a user