Skip to content

Commit

Permalink
Reduce thread sleep time
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Nov 26, 2024
1 parent a0ca33d commit 37a1a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nano/node/confirming_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void nano::confirming_set::run_batch (std::unique_lock<std::mutex> & lock)
{
// Confirming this block may implicitly confirm more
stats.add (nano::stat::type::confirming_set, nano::stat::detail::cemented, added.size ());
for (auto & block : added)
for (auto const & block : added)
{
cemented.push_back ({ block, hash, election });
}
Expand All @@ -257,7 +257,7 @@ void nano::confirming_set::run_batch (std::unique_lock<std::mutex> & lock)
{
stats.inc (nano::stat::type::confirming_set, nano::stat::detail::rate_limited);
transaction.commit ();
std::this_thread::sleep_for (500ms);
std::this_thread::sleep_for (100ms);
transaction.renew ();
if (stopped)
{
Expand Down

0 comments on commit 37a1a82

Please sign in to comment.