         PAprod: [],
         PAtest: []
        }
-    end, name: __MODULE__)
+    end, name: @agent_name)
     # init the Repo
     init(:retry, true)
   end

  ## Private

  defp retrieve(key) do
    Agent.get(__MODULE__, &Map.get(&1, key))
  end

  defp store(value, key) do
    Agent.update(__MODULE__, &Map.put(&1, key, value))
  end

  defp tag_loaded?(tag) do

  Starts the PeerAssets repository.
  """
  def start_link do
    GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
  end

  @doc """
  Returns a list of registered assets.
  """
  def list_assets(net \\ :PAprod) do
    Agent.get(@agent_name, &Map.fetch(&1, net))
  end

  @doc """
