Merge pull request 'IdempotencyPlug: Fix private function name typo' (#7985) from idempotency-plug-typo into develop
Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7985
This commit is contained in:
commit
149236e468
2 changed files with 2 additions and 2 deletions
0
changelog.d/idempotency-plug-func-typo.skip
Normal file
0
changelog.d/idempotency-plug-func-typo.skip
Normal file
|
|
@ -33,7 +33,7 @@ defmodule Pleroma.Web.Plugs.IdempotencyPlug do
|
||||||
|
|
||||||
case @cachex.get(:idempotency_cache, cache_key) do
|
case @cachex.get(:idempotency_cache, cache_key) do
|
||||||
{:ok, nil} ->
|
{:ok, nil} ->
|
||||||
cache_resposnse(conn, key, cache_key)
|
cache_response(conn, key, cache_key)
|
||||||
|
|
||||||
{:ok, record} ->
|
{:ok, record} ->
|
||||||
send_cached(conn, key, record)
|
send_cached(conn, key, record)
|
||||||
|
|
@ -43,7 +43,7 @@ defmodule Pleroma.Web.Plugs.IdempotencyPlug do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp cache_resposnse(conn, key, cache_key) do
|
defp cache_response(conn, key, cache_key) do
|
||||||
register_before_send(conn, &maybe_cache_response(&1, key, cache_key))
|
register_before_send(conn, &maybe_cache_response(&1, key, cache_key))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue