Skip to content

Commit

Permalink
Revert "fix: enable remote node beacon autoload (#307)"
Browse files Browse the repository at this point in the history
This reverts commit ee47d14.
  • Loading branch information
leandrocp authored Nov 27, 2024
1 parent ee47d14 commit 034a6b8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/beacon/live_admin/cluster.ex
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,9 @@ defmodule Beacon.LiveAdmin.Cluster do
end

node = pick_node(nodes)
enable_beacon_autoload(site, node)
do_call(site, node, mod, fun, args)
end

# Before a function call is made to the remote node,
# we need to enable Beacon's ErrorHandler (module autoload)
# because that call might depend on modules that have not been loaded yet.
defp enable_beacon_autoload(site, node) do
do_call(site, node, Beacon.ErrorHandler, :enable, [site])
end

defp do_call(site, node, mod, fun, args) do
if node == Node.self() do
apply(mod, fun, args)
Expand Down

0 comments on commit 034a6b8

Please sign in to comment.