diff options
Diffstat (limited to 'shard/lib/keys.ex')
-rw-r--r-- | shard/lib/keys.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shard/lib/keys.ex b/shard/lib/keys.ex index f98deba..e0180b7 100644 --- a/shard/lib/keys.ex +++ b/shard/lib/keys.ex @@ -16,7 +16,7 @@ defmodule Shard.Keys do :dets.start {:ok, @key_db} = :dets.open_file(@key_db, [type: :set]) for [pk, _] <- :dets.match(@key_db, {:'$1', :'$2'}) do - Shard.Manifest.start %SApp.Identity.Manifest{pk: pk} + Shard.Manager.find_or_start %SApp.Identity.Manifest{pk: pk} end nil end @@ -53,7 +53,7 @@ defmodule Shard.Keys do {pk, sk} = gen_keypair(Application.get_env(:shard, :identity_suffix)) Logger.info "New identity: #{pk|>Base.encode16}" :dets.insert @key_db, {pk, sk} - Shard.Manifest.start %SApp.Identity.Manifest{pk: pk} + Shard.Manager.find_or_start %SApp.Identity.Manifest{pk: pk} pk end |