Skip to content

Commit

Permalink
Reject Vault process when it exist
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-ba authored and stuartc committed Dec 8, 2023
1 parent 7a3746c commit 440d6de
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ defmodule Lightning.Repo.Migrations.CastCredentialBody do

def change do
[{Lightning.Vault, Application.get_env(:lightning, Lightning.Vault, [])}]
|> Enum.reject(fn {mod, _} -> Process.whereis(mod) end)
|> Supervisor.start_link(strategy: :one_for_one)

Repo.transaction(fn ->
Expand Down

0 comments on commit 440d6de

Please sign in to comment.