Skip to content

Commit e10890d

Browse files
committed
Upgrade to pgbroker v0.0.18
1 parent 8431925 commit e10890d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.15
55
require (
66
github.com/golang/protobuf v1.5.2 // indirect
77
github.com/pganalyze/pg_query_go/v2 v2.1.2
8-
github.com/rueian/pgbroker v0.0.17
8+
github.com/rueian/pgbroker v0.0.18
99
google.golang.org/protobuf v1.33.0 // indirect
1010
gopkg.in/yaml.v2 v2.4.0
1111
)

pgbroker/message/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (b *Message) ReadUint32() (r uint32) {
4949
func (b *Message) ReadString() (r string) {
5050
end := b.offset
5151
max := uint32(len(b.data))
52-
for ; b.data[end] != 0 && end != max; end++ {
52+
for ; end != max && b.data[end] != 0; end++ {
5353
}
5454
r = string(b.data[b.offset:end])
5555
b.offset = end + 1

0 commit comments

Comments
 (0)