Skip to content

Commit

Permalink
Iterate frontiers on bootstrap workers thread
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Jul 4, 2024
1 parent 3276f24 commit d0f7588
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nano/node/bootstrap/bootstrap_frontier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ void nano::frontier_req_client::receive_frontier ()
// we simply get a size of 0.
if (size_a == nano::frontier_req_client::size_frontier)
{
this_l->received_frontier (ec, size_a);
node->bootstrap_workers.push_task ([this_l, ec, size_a] () {
this_l->received_frontier (ec, size_a);
});
}
else
{
Expand Down

0 comments on commit d0f7588

Please sign in to comment.