Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vdarulis committed Dec 23, 2020
1 parent 499c69b commit d7dd7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metrics/encoding/protobuf/unaggregated_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (it *unaggregatedIterator) Next() bool {
it.err = fmt.Errorf("decoded message size %d is larger than supported max message size %d", size, it.maxMessageSize)
return false
}
if size < 0 {
if size <= 0 {
it.err = fmt.Errorf("decoded message size %d is zero or negative", size)
return false
}
Expand Down

0 comments on commit d7dd7c6

Please sign in to comment.