Skip to content

Commit

Permalink
Add pending module
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 12, 2025
1 parent b6eeef7 commit 4e3774c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/broadway/application.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
defmodule Broadway.Application do
use Application

def start(_type, _args) do
config_storage = Broadway.ConfigStorage.get_module()

if Code.ensure_loaded?(config_storage) and function_exported?(config_storage, :setup, 0) do
config_storage.setup()
end

opts = [strategy: :one_for_one, name: Broadway.Supervisor]
Supervisor.start_link([], opts)
end
end

0 comments on commit 4e3774c

Please sign in to comment.