mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
renaming variables
This commit is contained in:
parent
8b32d9aefa
commit
5b065faa3d
1 changed files with 3 additions and 1 deletions
|
@ -989,13 +989,15 @@ func (m methodREQHttpGet) handler(proc process, message Message, node string) ([
|
|||
return
|
||||
}
|
||||
|
||||
out, err := io.ReadAll(resp.Body)
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
er := fmt.Errorf("error: methodREQHttpGet: io.ReadAll failed : %v, message: %v", err, message)
|
||||
sendErrorLogMessage(proc.toRingbufferCh, proc.node, er)
|
||||
log.Printf("%v\n", er)
|
||||
}
|
||||
|
||||
out := body
|
||||
|
||||
select {
|
||||
case outCh <- out:
|
||||
case <-ctx.Done():
|
||||
|
|
Loading…
Reference in a new issue