Ensure policies are fully loaded
This commit is contained in:
parent
1de2ecc40f
commit
a3cda22ff1
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ def filter_one(policy, %{"type" => type} = message)
|
|||
end
|
||||
|
||||
def filter_one(policy, message) do
|
||||
Code.ensure_loaded!(policy)
|
||||
|
||||
should_plug_history? =
|
||||
if function_exported?(policy, :history_awareness, 0) do
|
||||
policy.history_awareness()
|
||||
|
|
Loading…
Reference in a new issue