Skip to content

Commit 83311d4

Browse files
committed
refactor: rename SearchSupervisor
1 parent 6a188ba commit 83311d4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/algora/integrations/github/poller/root_supervisor.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ defmodule Algora.Github.Poller.RootSupervisor do
22
@moduledoc false
33
use Supervisor
44

5+
alias Algora.Github.Poller.SearchSupervisor
6+
57
def start_link(init_arg) do
68
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
79
end
810

911
@impl true
1012
def init(_init_arg) do
1113
children = [
12-
Algora.Github.Poller.Supervisor,
14+
SearchSupervisor,
1315
Supervisor.child_spec(
14-
{Task, &Algora.Github.Poller.Supervisor.start_children/0},
16+
{Task, &SearchSupervisor.start_children/0},
17+
id: :search_supervisor,
1518
restart: :transient
1619
)
1720
]

lib/algora/integrations/github/poller/supervisor.ex renamed to lib/algora/integrations/github/poller/search_supervisor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule Algora.Github.Poller.Supervisor do
1+
defmodule Algora.Github.Poller.SearchSupervisor do
22
@moduledoc false
33
use DynamicSupervisor
44

0 commit comments

Comments
 (0)