Skip to content

Commit

Permalink
fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
simon28082 authored Oct 20, 2024
1 parent 4d3a4e8 commit ce00bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func (st *Stream) streamKVs(ctx context.Context) error {
// Send the batch immediately if it already exceeds the maximum allowed size.
// If the size of the batch exceeds maxStreamSize, break from the loop to
// avoid creating a batch that is so big that certain limits are reached.
if batch.LenNoPadding() > uint64(st.MaxSize) {
if uint64(batch.LenNoPadding()) > st.MaxSize {

Check failure on line 326 in stream.go

View workflow job for this annotation

GitHub Actions / lint

G115: integer overflow conversion int -> uint64 (gosec)
break loop
}
select {
Expand Down

0 comments on commit ce00bcf

Please sign in to comment.