From e3b535665a0e425f5ccfdb3d20d441b4510c8387 Mon Sep 17 00:00:00 2001 From: postmannen Date: Wed, 15 Dec 2021 15:13:48 +0100 Subject: [PATCH] REQHttpGet client time set to MethodTimeout --- requests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests.go b/requests.go index 7b89d7b..4b00996 100644 --- a/requests.go +++ b/requests.go @@ -1313,7 +1313,7 @@ func (m methodREQHttpGet) handler(proc process, message Message, node string) ([ url := message.MethodArgs[0] client := http.Client{ - Timeout: time.Second * 5, + Timeout: time.Duration(message.MethodTimeout), } ctx, cancel := context.WithTimeout(proc.ctx, time.Second*time.Duration(message.MethodTimeout))