Skip to content

Commit

Permalink
fix: Change time unit to ms (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecabaco authored Nov 12, 2024
1 parent c5d1670 commit fed9ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/realtime/tenants/connect/piper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule Realtime.Tenants.Connect.Piper do

def run(pipers, init) do
Enum.reduce_while(pipers, {:ok, init}, fn piper, {:ok, acc} ->
case :timer.tc(fn -> piper.run(acc) end) do
case :timer.tc(fn -> piper.run(acc) end, :millisecond) do
{exec_time, {:ok, result}} ->
Logger.info("#{inspect(piper)} executed in #{exec_time} ms")
{:cont, {:ok, result}}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
def project do
[
app: :realtime,
version: "2.33.35",
version: "2.33.36",
elixir: "~> 1.16.0",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit fed9ba8

Please sign in to comment.