Skip to content

Commit

Permalink
chore: resolve credo complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
nlwstein committed Feb 9, 2024
1 parent c5d888c commit f8aabfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api_web/lib/api_web/rate_limiter/memcache/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ defmodule ApiWeb.RateLimiter.Memcache.Supervisor do
clear_interval = div(clear_interval_ms, 1000)

connection_opts_config =
Application.fetch_env!(:api_web, RateLimiter.Memcache)
:api_web
|> Application.fetch_env!(RateLimiter.Memcache)
|> Keyword.fetch!(:connection_opts)

connection_opts = [ttl: clear_interval * 2] ++ connection_opts_config
Expand Down

0 comments on commit f8aabfd

Please sign in to comment.