Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Mar 30, 2024
1 parent e2b6671 commit 86596ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remote_chain/rpc_cache.ex
Expand Up @@ -88,7 +88,7 @@ defmodule RemoteChain.RPCCache do

defp maybe_cache(chain, method, args) do
{time, ret} = :timer.tc(fn -> NodeProxy.rpc!(chain, method, args) end)
Logger.debug("RPC #{method} #{inspect(args)} took #{time}ms")
Logger.debug("RPC #{method} #{inspect(args)} took #{div(time, 1000)}ms")

if should_cache_method(method, args) and should_cache_result(ret) do
GenServer.cast(name(chain), {:set, method, args, ret})
Expand Down

0 comments on commit 86596ae

Please sign in to comment.