update config for storage

This commit is contained in:
2024-05-12 01:22:45 +02:00
parent 3239f09cbd
commit f8dbf17c73
4 changed files with 21 additions and 5 deletions
@@ -16,7 +16,7 @@ defmodule Scrapper.MatchClassifier do
|> Scrapper.Parallel.peach(fn {match, index} ->
%{key: json_file} = match
[key | _] = String.split(json_file, ".")
response = HTTPoison.get!("http://localhost:9000/matches/#{key}.json", [], timeout: 5000)
response = HTTPoison.get!("http://#{System.get_env("EX_AWS_ENDPOINT")}:9000/matches/#{key}.json", [], timeout: 5000)
%{"info" => %{"gameVersion" => gameVersion, "queueId" => queueId}} =
Poison.decode!(response.body)