aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-04-13 21:17:55 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-04-29 18:39:01 +0300
commita508f718f3e087c96a306399582a85df2e1d53ae (patch)
treee3bc35738c1489f5324fb08e65f8d6ec8a7902ab /src/init.cpp
parent30e44482152488a78f2c495798a75e6f553dc0c8 (diff)
refactor: Use appropriate thread constructor
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index e78e97ae35..896cb774b5 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1267,7 +1267,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
node.scheduler = std::make_unique<CScheduler>();
// Start the lightweight task scheduler thread
- node.scheduler->m_service_thread = std::thread([&] { util::TraceThread("scheduler", [&] { node.scheduler->serviceQueue(); }); });
+ node.scheduler->m_service_thread = std::thread(util::TraceThread, "scheduler", [&] { node.scheduler->serviceQueue(); });
// Gather some entropy once per minute.
node.scheduler->scheduleEvery([]{