Skip to content

Commit

Permalink
Move confirmation processing on to worker threads rather than io thre…
Browse files Browse the repository at this point in the history
…ads. (#4634)
  • Loading branch information
clemahieu authored May 21, 2024
1 parent 37dbc3c commit 7e23de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/election.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void nano::election::confirm_once (nano::unique_lock<nano::mutex> & lock_a)

lock_a.unlock ();

node.background ([node_l = node.shared (), status_l, confirmation_action_l = confirmation_action] () {
node.workers.push_task ([node_l = node.shared (), status_l, confirmation_action_l = confirmation_action] () {
node_l->process_confirmed (status_l);

if (confirmation_action_l)
Expand Down

0 comments on commit 7e23de0

Please sign in to comment.