Skip to content

Commit

Permalink
Fixing @impl syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
netboz committed Jan 23, 2023
1 parent 055a0ac commit 03d1749
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/archethic/utils/hydrating_cache/caches_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ defmodule Archethic.Utils.HydratingCache.CachesManager do
GenServer.call(__MODULE__, {:end_service, name})
end

@impl true
@impl GenServer
def init(_args) do
manager_conf = Application.get_env(:archethic, __MODULE__, [])

Expand All @@ -63,7 +63,7 @@ defmodule Archethic.Utils.HydratingCache.CachesManager do
{:ok, %{:caches_sup => caches_sup}}
end

@impl true
@impl GenServer
def handle_call({:new_service_sync, name, initial_keys}, _from, state) do
Logger.info("Starting new service sync : #{name}")

Expand All @@ -76,7 +76,7 @@ defmodule Archethic.Utils.HydratingCache.CachesManager do
{:reply, {:ok, pid}, state}
end

@impl true
@impl GenServer
def handle_cast({:new_service_async, name, keys, _requester}, state) do
Logger.info("Starting new service async : #{name}")

Expand Down
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 03d1749

Please sign in to comment.