Removed unnecessary lock

This commit is contained in:
SChernykh
2023-06-27 16:56:47 +02:00
parent 3554adf0c1
commit f79be1b343
4 changed files with 20 additions and 27 deletions

View File

@@ -447,7 +447,7 @@ bool RandomX_Hasher_RPC::calculate(const void* data_ptr, size_t size, uint64_t h
volatile bool done = false;
const Params& params = m_pool->params();
const Params::Host host = m_pool->current_host();
const Params::Host& host = m_pool->current_host();
JSONRPCRequest::call(host.m_address, host.m_rpcPort, buf, host.m_rpcLogin, params.m_socks5Proxy,
[&result, &h](const char* data, size_t size, double)