Shorten timeouts for Last.fm api
Especially when the application wakes up from suspension, requests tend to timeout.
This commit is contained in:
@@ -12,8 +12,8 @@ defmodule LastFm.APIImpl do
|
|||||||
# so we make them shorter to leverage retries
|
# so we make them shorter to leverage retries
|
||||||
@request_opts [
|
@request_opts [
|
||||||
pool_timeout: 1000,
|
pool_timeout: 1000,
|
||||||
receive_timeout: 3000,
|
receive_timeout: 1000,
|
||||||
request_timeout: 4500
|
request_timeout: 2500
|
||||||
]
|
]
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
|
|||||||
Reference in New Issue
Block a user