Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
e-max committed Jan 21, 2019
1 parent 2d53b24 commit 3373258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proto/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ func readRecord(r io.Reader) (*Record, error) {
rec.Key = dec.DecodeVarBytes()
rec.Value = dec.DecodeVarBytes()

len := dec.DecodeVarInt()
headersLen := dec.DecodeVarInt()

rec.Headers = make([]RecordHeader, len)
rec.Headers = make([]RecordHeader, headersLen)
for i := range rec.Headers {
rec.Headers[i].Key = dec.DecodeVarString()
rec.Headers[i].Value = dec.DecodeVarBytes()
Expand Down

0 comments on commit 3373258

Please sign in to comment.