Skip to content

Commit

Permalink
Fix catch in name_to_pid
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed Oct 7, 2024
1 parent c4b8bee commit 4dcf958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metrics/hpr_metrics.erl
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ name_to_pid(Name) ->
try erlang:list_to_pid(Name) of
Pid -> Pid
catch
_ ->
_E:_R ->
erlang:whereis(erlang:list_to_atom(Name))
end.

Expand Down

0 comments on commit 4dcf958

Please sign in to comment.