From f6cdbe572cc2a06a131f0a7753152d20cfb10507 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 14 Jan 2025 23:42:14 +0000 Subject: [PATCH] rm Mix.env() from fetcher --- lib/ppr_api/fetcher.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ppr_api/fetcher.ex b/lib/ppr_api/fetcher.ex index 1107ea6..1679634 100644 --- a/lib/ppr_api/fetcher.ex +++ b/lib/ppr_api/fetcher.ex @@ -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()