Use dedicated http client pool for LastFm

This commit is contained in:
Claudio Ortolina
2024-11-07 20:58:40 +00:00
parent 5c4c87e5c1
commit 64193858a6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ defmodule LastFm.APIImpl do
{"User-Agent", "MusicLibrary/0.1.0 ( cloud8421@gmail.com )"}
])
case Finch.request(req, MusicLibrary.Finch) do
case Finch.request(req, LastFm.Finch) do
{:ok, response} when response.status == 200 ->
Jason.decode(response.body)
+1
View File
@@ -10,6 +10,7 @@ defmodule LastFm.Supervisor do
:ok = LastFm.Feed.create_table!()
children = [
{Finch, name: LastFm.Finch},
{Phoenix.PubSub, name: LastFm.PubSub},
{LastFm.Refresh, config}
]