1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

REQHttpGet client time set to MethodTimeout

This commit is contained in:
postmannen 2021-12-15 15:13:48 +01:00
parent 2a52306247
commit e3b535665a

View file

@ -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))