From 2aab482ec49de64a598625b8a37b8d0aed01a3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Torrero=20Marijnissen?= Date: Wed, 18 Oct 2023 16:24:21 +0100 Subject: [PATCH] Reduce ping timeout --- internal/factsengine/gatherers/sapinstancehostnameresolver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/factsengine/gatherers/sapinstancehostnameresolver.go b/internal/factsengine/gatherers/sapinstancehostnameresolver.go index 5434e714..5137802a 100644 --- a/internal/factsengine/gatherers/sapinstancehostnameresolver.go +++ b/internal/factsengine/gatherers/sapinstancehostnameresolver.go @@ -22,8 +22,8 @@ const ( var ( hostnameRegexCompiled = regexp.MustCompile(`(.+)_(.+)_(.+)`) // __ regexSubgroupsCount = 4 - pingTimeout = 2 * time.Second - pingInterval = 1000 * time.Millisecond + pingTimeout = 1 * time.Second + pingInterval = 1 * time.Second SapInstanceHostnameResolverDetailsError = entities.FactGatheringError{ Type: "sapinstance-hostname-resolver-details-error", Message: "error gathering details",