Skip to content

Commit

Permalink
make consumeMessageBatchMaxSize default value consistent with java cl…
Browse files Browse the repository at this point in the history
…ient (#660)

Co-authored-by: zhangxu16 <[email protected]>
  • Loading branch information
maixiaohai and zhangxu16 authored Jul 15, 2021
1 parent e94bf49 commit a7a7387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer/push_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func (pc *pushConsumer) validate() {

if pc.option.ConsumeMessageBatchMaxSize < 1 || pc.option.ConsumeMessageBatchMaxSize > 1024 {
if pc.option.ConsumeMessageBatchMaxSize == 0 {
pc.option.ConsumeMessageBatchMaxSize = 512
pc.option.ConsumeMessageBatchMaxSize = 1
} else {
rlog.Error("option.ConsumeMessageBatchMaxSize out of range [1, 1024]", nil)
}
Expand Down

0 comments on commit a7a7387

Please sign in to comment.