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
|
||||
@request_opts [
|
||||
pool_timeout: 1000,
|
||||
receive_timeout: 3000,
|
||||
request_timeout: 4500
|
||||
receive_timeout: 1000,
|
||||
request_timeout: 2500
|
||||
]
|
||||
|
||||
@impl true
|
||||
|
||||
Reference in New Issue
Block a user