From 034a6b8fcdc5d560740e055b0eed9170e94a08bd Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Wed, 27 Nov 2024 13:52:51 -0500 Subject: [PATCH] Revert "fix: enable remote node beacon autoload (#307)" This reverts commit ee47d14faeb7b59f7c995e708ec088995d5ae977. --- lib/beacon/live_admin/cluster.ex | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/beacon/live_admin/cluster.ex b/lib/beacon/live_admin/cluster.ex index b5de0203..7033e1b5 100644 --- a/lib/beacon/live_admin/cluster.ex +++ b/lib/beacon/live_admin/cluster.ex @@ -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)