Skip to content

Commit 4d3a4e8

Browse files
authored
Update stream.go
Change maxSize type
1 parent a8c3260 commit 4d3a4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func (st *Stream) streamKVs(ctx context.Context) error {
323323
// Send the batch immediately if it already exceeds the maximum allowed size.
324324
// If the size of the batch exceeds maxStreamSize, break from the loop to
325325
// avoid creating a batch that is so big that certain limits are reached.
326-
if batch.LenNoPadding() > int(st.MaxSize) {
326+
if batch.LenNoPadding() > uint64(st.MaxSize) {
327327
break loop
328328
}
329329
select {

0 commit comments

Comments
 (0)