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:
parent
2a52306247
commit
e3b535665a
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue