Skip to content

Commit ee01317

Browse files
committed
fix: use :global for ETS store name
Using `:swarm` causes the store to not be discoverable by the GenServer apis. I'm not sure this is the right way to go, but it seems to work when I build a release and a lot of tests got fixed.
1 parent d49317e commit ee01317

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apps/engine/lib/engine/search/store/backends/ets.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ defmodule Engine.Search.Store.Backends.Ets do
182182
end
183183

184184
defp genserver_name(%Project{} = project) do
185-
{:via, :swarm, leader_name(project)}
185+
{:via, :global, leader_name(project)}
186186
end
187187

188188
defp become_leader(%Project{} = project) do

apps/expert/lib/expert/engine_node.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ defmodule Expert.EngineNode do
356356
@impl true
357357
def handle_info({_port, {:data, message}}, %State{} = state) do
358358
Logger.debug("Received port message: #{inspect(message)}")
359-
dbg(message)
360359
{:noreply, state}
361360
end
362361

0 commit comments

Comments
 (0)