Merge pull request #39 from iv-org/timeout

Double the time before requests to /api/v1/stats timeout
This commit is contained in:
TheFrenchGhosty 2022-05-02 13:48:24 +02:00 committed by GitHub
commit 5301e08bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,8 +72,8 @@ spawn do
else
type = uri.scheme.not_nil!
client = HTTP::Client.new(uri)
client.connect_timeout = 5.seconds
client.read_timeout = 5.seconds
client.connect_timeout = 10.seconds
client.read_timeout = 10.seconds
begin
req = client.get("/api/v1/stats")
stats = JSON.parse(req.body)