@@ -303,14 +303,6 @@ defmodule Phoenix.Sync.Electric do
303303 electric_children ( env , mode , opts )
304304 end
305305
306- # don't start embedded electric in :test env because electric
307- # creates replication slots and doesn't play well with
308- # async tests
309- # defp electric_children(:test, :embedded, _opts) do
310- # Logger.info("Not starting embedded electric in test mode")
311- # {:ok, []}
312- # end
313-
314306 defp electric_children ( env , mode , opts ) do
315307 case validate_database_config ( env , mode , opts ) do
316308 { :start , db_config_fun , message } ->
@@ -400,19 +392,6 @@ defmodule Phoenix.Sync.Electric do
400392 # if we want to use emphemeral dir for dev storage then we have to persist
401393 # the storage_dir into the application config.
402394 opts
403- # |> Keyword.put_new(
404- # :storage_dir,
405- # Path.join(System.tmp_dir!(), "electric/shape-data#{System.monotonic_time()}")
406- # )
407- # |> Keyword.put_new(
408- # :storage,
409- # {Electric.ShapeCache.InMemoryStorage,
410- # table_base_name: :"electric-storage#{opts[:stack_id]}", stack_id: opts[:stack_id]}
411- # )
412- # |> Keyword.put_new(
413- # :persistent_kv,
414- # {Electric.PersistentKV.Memory, :new!, []}
415- # )
416395 |> Keyword . put_new ( :send_cache_headers? , false )
417396 end
418397
0 commit comments