Skip to content

Commit

Permalink
Fix handle_task
Browse files Browse the repository at this point in the history
  • Loading branch information
shizzard committed Feb 7, 2025
1 parent e360728 commit 6c43fb9
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 @@ -210,7 +210,7 @@ handle_cast(?MSG_ADD_TASK({TaskType, Candidate, _ExtraArgs} = Task), State) ->
handle_cast(?MSG_HANDLE_TASK, #state{ task_queue = Q } = State) ->
case gb_sets:is_empty(Q) of
true ->
ar_util:cast_after(?TASK_CHECK_FREQUENCY_MS, self(), handle_task),
ar_util:cast_after(?TASK_CHECK_FREQUENCY_MS, self(), ?MSG_HANDLE_TASK),
{noreply, State};
_ ->
{{_Priority, _ID, Task}, Q2} = gb_sets:take_smallest(Q),
Expand Down

0 comments on commit 6c43fb9

Please sign in to comment.