Skip to content

Commit 6ab5764

Browse files
nathanljosevalim
andauthored
Update lib/db_connection/util.ex
Co-authored-by: José Valim <[email protected]>
1 parent 282e6ea commit 6ab5764

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
@@ -17,8 +17,8 @@ defmodule DBConnection.Util do
1717
Set a process label if `Process.set_label/1` is available.
1818
"""
1919
def set_label(label) do
20-
if function_exported?(Process, :set_label, 1) do
21-
Process.set_label(label)
20+
if function_exported?(:proc_lib, :set_label, 1) do
21+
:proc_lib.set_label(label)
2222
else
2323
:ok
2424
end

0 commit comments

Comments
 (0)