diff options
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/http.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/http.go b/rpc/http.go index 6bab02ab6..4143e2a8d 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -103,8 +103,8 @@ func (c *Client) sendBatchHTTP(ctx context.Context, op *requestOp, msgs []*jsonr if err := json.NewDecoder(respBody).Decode(&respmsgs); err != nil { return err } - for _, respmsg := range respmsgs { - op.resp <- &respmsg + for i := 0; i < len(respmsgs); i++ { + op.resp <- &respmsgs[i] } return nil } |