Skip to content

Commit

Permalink
Changing if condition from C-style in response to PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Herstine committed Jun 30, 2017
1 parent b69551c commit d6b6145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (r *FetchRequest) encode(pe packetEncoder) (err error) {
pe.putInt32(-1) // replica ID is always -1 for clients
pe.putInt32(r.MaxWaitTime)
pe.putInt32(r.MinBytes)
if 3 == r.Version {
if r.Version == 3 {
pe.putInt32(r.MaxBytes)
}
err = pe.putArrayLength(len(r.blocks))
Expand Down

0 comments on commit d6b6145

Please sign in to comment.