Skip to content

Commit

Permalink
[federation] remove caching
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Dec 5, 2024
1 parent 259f345 commit 6e08867
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/boruta_federation/lib/boruta_federation/trust_chains.ex
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
defmodule BorutaFederation.TrustChains do
@moduledoc false

use Nebulex.Caching

import Boruta.Config, only: [issuer: 0]

alias BorutaFederation.FederationEntities.FederationEntity
Expand Down Expand Up @@ -57,11 +55,6 @@ defmodule BorutaFederation.TrustChains do
end
end

@decorate cacheable(
cache: BorutaFederation.Cache,
key: {__MODULE__, entity.id},
opts: [ttl: @trust_chain_ttl]
)
@spec generate_trust_chain(entity :: FederationEntity.t()) ::
{:ok, trust_chain :: list(String.t())} | {:error, reason :: String.t()}
def generate_trust_chain(entity) do
Expand Down

0 comments on commit 6e08867

Please sign in to comment.