good morning!!!!

Skip to content
Snippets Groups Projects
Commit 413dc1d2 authored by bloonfield's avatar bloonfield Committed by Péter Szilágyi
Browse files

rpc: fix closure problem in batch processing (#14688)

Demo of the issue: https://play.golang.org/p/EeTLFfppqC
parent fdf2184b
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment