Skip to content

Commit

Permalink
Make plug's duration/1 function private
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed Sep 12, 2024
1 parent 274557c commit 1371032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logger_json/plug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if Code.ensure_loaded?(Plug) and Code.ensure_loaded?(:telemetry) do
defp status(nil), do: ""
defp status(status), do: [status |> Plug.Conn.Status.code() |> Integer.to_string(), ?\s]

def duration(duration) do
defp duration(duration) do
if duration > 1000 do
[duration |> div(1000) |> Integer.to_string(), "ms"]
else
Expand Down

0 comments on commit 1371032

Please sign in to comment.