mirror of
https://gitea.invidious.io/iv-org/instances-api.git
synced 2024-08-15 00:53:15 +00:00
Merge pull request #39 from iv-org/timeout
Double the time before requests to /api/v1/stats timeout
This commit is contained in:
commit
5301e08bd3
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ spawn do
|
||||||
else
|
else
|
||||||
type = uri.scheme.not_nil!
|
type = uri.scheme.not_nil!
|
||||||
client = HTTP::Client.new(uri)
|
client = HTTP::Client.new(uri)
|
||||||
client.connect_timeout = 5.seconds
|
client.connect_timeout = 10.seconds
|
||||||
client.read_timeout = 5.seconds
|
client.read_timeout = 10.seconds
|
||||||
begin
|
begin
|
||||||
req = client.get("/api/v1/stats")
|
req = client.get("/api/v1/stats")
|
||||||
stats = JSON.parse(req.body)
|
stats = JSON.parse(req.body)
|
||||||
|
|
Loading…
Reference in a new issue