mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
refactor: Make ThreadHTTP
return void
The `bool` return value was introduced in755aa05174
. It has been not used since8d3f46ec39
. No behavior change.
This commit is contained in:
parent
b4fb0a3255
commit
45553e11c9
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
static void ThreadHTTP(struct event_base* base)
|
||||||
{
|
{
|
||||||
util::ThreadRename("http");
|
util::ThreadRename("http");
|
||||||
SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET_HTTP_SERVER);
|
SetSyscallSandboxPolicy(SyscallSandboxPolicy::NET_HTTP_SERVER);
|
||||||
|
@ -287,7 +287,6 @@ static bool ThreadHTTP(struct event_base* base)
|
||||||
event_base_dispatch(base);
|
event_base_dispatch(base);
|
||||||
// Event loop will be interrupted by InterruptHTTPServer()
|
// Event loop will be interrupted by InterruptHTTPServer()
|
||||||
LogPrint(BCLog::HTTP, "Exited http event loop\n");
|
LogPrint(BCLog::HTTP, "Exited http event loop\n");
|
||||||
return event_base_got_break(base) == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Bind HTTP server to specified addresses */
|
/** Bind HTTP server to specified addresses */
|
||||||
|
|
Loading…
Add table
Reference in a new issue