Skip to content

Commit

Permalink
Fixing behavior @impl
Browse files Browse the repository at this point in the history
  • Loading branch information
netboz committed Jan 23, 2023
1 parent 055a0ac commit 024fd49
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/archethic/utils/hydrating_cache/hydrating_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ defmodule Archethic.Utils.HydratingCache do
{:ok, %{:keys => keys, keys_sup: keys_sup}}
end

@impl true

@impl GenServer
def handle_call({:get, key}, from, state) do
case Map.get(state, key, :undefined) do
:undefined ->
Expand Down Expand Up @@ -186,7 +185,7 @@ defmodule Archethic.Utils.HydratingCache do
{:reply, :ok, state}
end

@impl true
@impl GenServer
def handle_cast({:get, from, key}, state) do
case Map.get(state, key, :undefined) do
:undefined ->
Expand Down Expand Up @@ -224,7 +223,7 @@ defmodule Archethic.Utils.HydratingCache do
{:noreply, state}
end

@impl true
@impl GenServer
def handle_info(unmanaged, state) do
Logger.warning("Cache received unmanaged info: #{inspect(unmanaged)}")
{:noreply, state}
Expand Down

0 comments on commit 024fd49

Please sign in to comment.