Skip to content

Commit

Permalink
rm Mix.env() from fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
brianflanagan committed Jan 14, 2025
1 parent 82e2e8c commit f6cdbe5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ppr_api/fetcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ defmodule PprApi.Fetcher do

# We recursively fetch from `current_date` until we reach today's month
defp fetch_months_recursively(%Fetch{} = fetch, %Date{} = current_date) do
if Mix.env() != :test do
Process.sleep(@wait_time)
end
Process.sleep(@wait_time)

current_date
|> fetch_data_for_month()
Expand Down

0 comments on commit f6cdbe5

Please sign in to comment.