Skip to content

Commit

Permalink
Check for client streaming in worker makeRequest()
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Apr 30, 2019
1 parent 16d8c5e commit cb562c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (w *Worker) makeRequest() error {
var err error

// try the optimized path for JSON data for non client-streaming
if !w.config.binary && len(w.arrayJSONData) > 0 {
if !w.config.binary && !w.mtd.IsClientStreaming() && len(w.arrayJSONData) > 0 {
indx := int((reqNum - 1) % int64(len(w.arrayJSONData))) // we want to start from inputs[0] so dec reqNum
if inputs, err = w.getMessages(ctd, []byte(w.arrayJSONData[indx])); err != nil {
return err
Expand Down

0 comments on commit cb562c1

Please sign in to comment.