Skip to content

Commit 316ad8e

Browse files
committed
chore: remove unnecessary Node check
1 parent 6e56c69 commit 316ad8e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/beacon/live_admin/cluster.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ defmodule Beacon.LiveAdmin.Cluster do
7272
end
7373

7474
defp do_call(site, node, mod, fun, args) do
75-
if node == Node.self() do
76-
apply(mod, fun, args)
77-
else
78-
:erpc.call(node, mod, fun, args)
79-
end
75+
:erpc.call(node, mod, fun, args)
8076
rescue
8177
exception ->
8278
Logger.debug("failed to call #{Exception.format_mfa(mod, fun, args)} for site #{inspect(site)} on node #{inspect(node)}")

0 commit comments

Comments
 (0)