Skip to content

Commit a5607dd

Browse files
committed
chore: replace deprecated function
1 parent b54c40a commit a5607dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/dogstatsd/statsd.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ defmodule DogStatsd.Statsd do
164164
socket,
165165
host(dogstatsd) |> String.to_charlist(),
166166
port(dogstatsd),
167-
message |> String.to_char_list()
167+
message |> String.to_charlist()
168168
)
169169

170170
:gen_udp.close(socket)

test/dogstatsd_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ defmodule DogStatsdTest do
360360
Enum.into(1..50, [])
361361
|> Enum.map(fn _ -> "mycounter:1|c" end)
362362
|> Enum.join("\n")
363-
|> String.to_char_list()
363+
|> String.to_charlist()
364364

365365
assert_receive {:udp, _port, _from_ip, _from_port, ^theoretical_reply}
366366

0 commit comments

Comments
 (0)