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

renaming variables

This commit is contained in:
postmannen 2021-08-24 09:25:43 +02:00
parent 8b32d9aefa
commit 5b065faa3d

View file

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