Skip to content

Commit 05dbb0c

Browse files
Remove unused argument to ThreadHTTP(...)
1 parent fad42e8 commit 05dbb0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/httpserver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ static void http_reject_request_cb(struct evhttp_request* req, void*)
279279
}
280280

281281
/** Event dispatcher thread */
282-
static bool ThreadHTTP(struct event_base* base, struct evhttp* http)
282+
static bool ThreadHTTP(struct event_base* base)
283283
{
284284
RenameThread("bitcoin-http");
285285
LogPrint(BCLog::HTTP, "Entering http event loop\n");
@@ -428,9 +428,9 @@ bool StartHTTPServer()
428428
LogPrint(BCLog::HTTP, "Starting HTTP server\n");
429429
int rpcThreads = std::max((long)gArgs.GetArg("-rpcthreads", DEFAULT_HTTP_THREADS), 1L);
430430
LogPrintf("HTTP: starting %d worker threads\n", rpcThreads);
431-
std::packaged_task<bool(event_base*, evhttp*)> task(ThreadHTTP);
431+
std::packaged_task<bool(event_base*)> task(ThreadHTTP);
432432
threadResult = task.get_future();
433-
threadHTTP = std::thread(std::move(task), eventBase, eventHTTP);
433+
threadHTTP = std::thread(std::move(task), eventBase);
434434

435435
for (int i = 0; i < rpcThreads; i++) {
436436
g_thread_http_workers.emplace_back(HTTPWorkQueueRun, workQueue);

0 commit comments

Comments
 (0)