Skip to content

Commit 6bb4da4

Browse files
committed
remove commented code
1 parent 657ad2e commit 6bb4da4

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

lib/phoenix/sync/electric.ex

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,6 @@ defmodule Phoenix.Sync.Electric do
305305
end
306306

307307
defp embedded_children(env, mode, opts) do
308-
electric_children(env, mode, opts)
309-
end
310-
311-
# don't start embedded electric in :test env because electric
312-
# creates replication slots and doesn't play well with
313-
# async tests
314-
# defp electric_children(:test, :embedded, _opts) do
315-
# Logger.info("Not starting embedded electric in test mode")
316-
# {:ok, []}
317-
# end
318-
319-
defp electric_children(env, mode, opts) do
320308
case validate_database_config(env, mode, opts) do
321309
{:start, db_config_fun, message} ->
322310
start_embedded(env, mode, db_config_fun, message)
@@ -405,19 +393,6 @@ defmodule Phoenix.Sync.Electric do
405393
# if we want to use emphemeral dir for dev storage then we have to persist
406394
# the storage_dir into the application config.
407395
opts
408-
# |> Keyword.put_new(
409-
# :storage_dir,
410-
# Path.join(System.tmp_dir!(), "electric/shape-data#{System.monotonic_time()}")
411-
# )
412-
# |> Keyword.put_new(
413-
# :storage,
414-
# {Electric.ShapeCache.InMemoryStorage,
415-
# table_base_name: :"electric-storage#{opts[:stack_id]}", stack_id: opts[:stack_id]}
416-
# )
417-
# |> Keyword.put_new(
418-
# :persistent_kv,
419-
# {Electric.PersistentKV.Memory, :new!, []}
420-
# )
421396
|> Keyword.put_new(:send_cache_headers?, false)
422397
end
423398

0 commit comments

Comments
 (0)