Skip to content

Commit

Permalink
Fix add_task
Browse files Browse the repository at this point in the history
  • Loading branch information
shizzard committed Feb 2, 2025
1 parent da11632 commit 153b9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/arweave/src/ar_mining_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ terminate(_Reason, _State) ->
%%%===================================================================
%%% Mining tasks.
%%%===================================================================
add_task({TaskType, Candidate, _ExtraArgs} = Task, State) ->
add_task(?MSG_ADD_TASK(TaskType, Candidate, _ExtraArgs) = Task, State) ->
#state{ task_queue = Q } = State,
StepNumber = Candidate#mining_candidate.step_number,
Q2 = gb_sets:insert({priority(TaskType, StepNumber), make_ref(), Task}, Q),
Expand Down

0 comments on commit 153b9f7

Please sign in to comment.