Skip to content

Commit 931ec10

Browse files
authored
Mark functions required by Phoenix.Sync (#2451)
and make `Electric.Application.configuration/1` public again
1 parent 5f2a66e commit 931ec10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/sync-service/lib/electric/application.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ defmodule Electric.Application do
6363
end
6464

6565
@doc false
66+
# REQUIRED (but undocumented) public API for Phoenix.Sync
6667
def api_plug_opts(opts \\ []) do
6768
opts
6869
|> api_configuration()
@@ -71,7 +72,9 @@ defmodule Electric.Application do
7172

7273
# Gets a complete configuration for the `StackSupervisor` based on the passed opts
7374
# plus the application configuration and the defaults.
74-
defp configuration(opts \\ []) do
75+
# REQUIRED (but undocumented) public API for Phoenix.Sync
76+
@doc false
77+
def configuration(opts \\ []) do
7578
instance_id = Electric.Config.ensure_instance_id()
7679

7780
core_config = core_configuration(opts)
@@ -202,6 +205,7 @@ defmodule Electric.Application do
202205
end
203206

204207
@doc false
208+
# REQUIRED (but undocumented) public API for Phoenix.Sync
205209
def api_server do
206210
api_server(Bandit, [])
207211
end

0 commit comments

Comments
 (0)