Skip to content

Commit 37a1a82

Browse files
committed
Reduce thread sleep time
1 parent a0ca33d commit 37a1a82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nano/node/confirming_set.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void nano::confirming_set::run_batch (std::unique_lock<std::mutex> & lock)
246246
{
247247
// Confirming this block may implicitly confirm more
248248
stats.add (nano::stat::type::confirming_set, nano::stat::detail::cemented, added.size ());
249-
for (auto & block : added)
249+
for (auto const & block : added)
250250
{
251251
cemented.push_back ({ block, hash, election });
252252
}
@@ -257,7 +257,7 @@ void nano::confirming_set::run_batch (std::unique_lock<std::mutex> & lock)
257257
{
258258
stats.inc (nano::stat::type::confirming_set, nano::stat::detail::rate_limited);
259259
transaction.commit ();
260-
std::this_thread::sleep_for (500ms);
260+
std::this_thread::sleep_for (100ms);
261261
transaction.renew ();
262262
if (stopped)
263263
{

0 commit comments

Comments
 (0)