Skip to content

Commit

Permalink
Ensure config storage is loaded (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc authored Dec 2, 2024
1 parent ddc2b19 commit 3305b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/broadway/topology.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ defmodule Broadway.Topology do

config_storage = ConfigStorage.get_module()

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

Expand Down

0 comments on commit 3305b1c

Please sign in to comment.