Skip to content

Commit

Permalink
nsqd: fix E_BAD_BODY for MPUB benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed May 1, 2015
1 parent e417b83 commit ed5ce72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsqd/protocol_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ func benchmarkProtocolV2Pub(b *testing.B, size int) {
opts.MemQueueSize = int64(b.N)
tcpAddr, _, nsqd := mustStartNSQD(opts)
msg := make([]byte, size)
batchSize := 200
batchSize := int(opts.MaxBodySize) / size
batch := make([][]byte, batchSize)
for i := range batch {
batch[i] = msg
Expand Down

0 comments on commit ed5ce72

Please sign in to comment.