Merge bitcoin/bitcoin#26821: refactor: Make ThreadHTTP return void
45553e11c9refactor: Make `ThreadHTTP` return void (Hennadii Stepanov) Pull request description: The `bool` return value was introduced in755aa05174(https://github.com/bitcoin/bitcoin/pull/8421). It has been not used since8d3f46ec39(https://github.com/bitcoin/bitcoin/pull/14670). No behavior change. ACKs for top commit: achow101: ACK45553e11c9brunoerg: crACK45553e11c9w0xlt: ACK https://github.com/bitcoin/bitcoin/pull/26821/commits/45553e11c965db218733f9ad32ecde391b393443 stickies-v: ACK45553e11cTree-SHA512: 1593a5740e729967fbe1363235cd5b77ecf431b29bc740a89a6c70fc838ad97a2e4a2cd7cd63aa482f7c50bc2ffabc8cd53e8f64d6032603cb3b662229bc3dc2
This commit is contained in:
1 file changed
+1
-2
+1
-2
@@ -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 */
|
||||||
|
|||||||
Reference in new issue
Block a user