Skip to content

Commit

Permalink
Update src/riak_core_worker_pool.erl
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Arts <[email protected]>
  • Loading branch information
martinsumner and ThomasArts authored Mar 19, 2024
1 parent 482d295 commit 0426602
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/riak_core_worker_pool.erl
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ code_change(_OldVsn, StateName, State, _Extra) ->
pid(), term(), term(), list(monitor())) -> list(monitor()).
monitor_worker(Worker, From, Work, Monitors) ->
Ref = erlang:monitor(process, Worker),
%% ukeysort deletes all monitors from Monitors with same worker
lists:ukeysort(1, [{Worker, Ref, From, Work} | Monitors]).

-spec demonitor_worker(pid(), list(monitor())) -> list(monitor()).
Expand Down

0 comments on commit 0426602

Please sign in to comment.