Code cleanup

This commit is contained in:
SChernykh
2022-06-20 22:37:33 +02:00
parent acf37ff10f
commit 2aa8d2bdcc
3 changed files with 6 additions and 4 deletions

View File

@@ -440,7 +440,9 @@ bool RandomX_Hasher_RPC::calculate(const void* data_ptr, size_t size, uint64_t h
volatile int result = 0;
volatile bool done = false;
JSONRPCRequest::call(m_pool->params().m_host, m_pool->params().m_rpcPort, buf, m_pool->params().m_rpcLogin,
const Params& params = m_pool->params();
JSONRPCRequest::call(params.m_host, params.m_rpcPort, buf, params.m_rpcLogin,
[&result, &h](const char* data, size_t size)
{
rapidjson::Document doc;