mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
Don't shadow variable name
Rename inner `brd` variable to avoid shadowing the outer scope `brd` variable.
This commit is contained in:
parent
64e6c97064
commit
b67fe6e008
|
@ -1204,13 +1204,13 @@ std::future<std::pair<cryptonote::blink_result, std::string>> send_blink(void *o
|
|||
bool found = false;
|
||||
std::unique_lock<std::shared_timed_mutex> lock{pending_blink_result_mutex};
|
||||
for (auto it = pending_blink_results.begin(); it != pending_blink_results.end(); ) {
|
||||
auto &brd = it->second;
|
||||
if (brd.expiry >= now) {
|
||||
try { brd.promise.set_value(std::make_pair(cryptonote::blink_result::timeout, "Blink quorum timeout")); }
|
||||
auto &b_results = it->second;
|
||||
if (b_results.expiry >= now) {
|
||||
try { b_results.promise.set_value(std::make_pair(cryptonote::blink_result::timeout, "Blink quorum timeout")); }
|
||||
catch (const std::future_error &) { /* ignore */ }
|
||||
it = pending_blink_results.erase(it);
|
||||
} else {
|
||||
if (!found && brd.hash == tx_hash)
|
||||
if (!found && b_results.hash == tx_hash)
|
||||
found = true;
|
||||
++it;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue