Skip to content

Commit 02bf591

Browse files
committed
Use Elixir function
1 parent 12a2ead commit 02bf591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/db_connection/util.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ defmodule DBConnection.Util do
3131
Set a process label if `Process.set_label/1` is available.
3232
"""
3333
def set_label(label) do
34-
if function_exported?(:proc_lib, :set_label, 1) do
35-
:proc_lib.set_label(label)
34+
if function_exported?(Process, :set_label, 1) do
35+
Process.set_label(label)
3636
else
3737
:ok
3838
end

0 commit comments

Comments
 (0)