From ede3df12efa4197e419560859ba77c7616622c30 Mon Sep 17 00:00:00 2001 From: Moritz Date: Mon, 23 Feb 2026 19:21:19 +0100 Subject: [PATCH] SyncFlash: document :public ETS table option --- lib/mv/vereinfacht/sync_flash.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mv/vereinfacht/sync_flash.ex b/lib/mv/vereinfacht/sync_flash.ex index fb062cd..874a717 100644 --- a/lib/mv/vereinfacht/sync_flash.ex +++ b/lib/mv/vereinfacht/sync_flash.ex @@ -35,6 +35,8 @@ defmodule Mv.Vereinfacht.SyncFlash do @doc false def create_table! do + # :public so any process can write (SyncContact runs in LiveView/Ash transaction process, + # not the process that created the table). :protected would restrict writes to the creating process. if :ets.whereis(@table) == :undefined do :ets.new(@table, [:set, :public, :named_table]) end