From 74ab5a9519d42504b752fb29c35d440f6e20d0a2 Mon Sep 17 00:00:00 2001 From: TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com> Date: Mon, 2 May 2022 00:58:41 +0200 Subject: [PATCH] Double the time before requests to /api/v1/stats timeout --- src/instances.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instances.cr b/src/instances.cr index cb04828..c1a85b4 100644 --- a/src/instances.cr +++ b/src/instances.cr @@ -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)