Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 17, 2024
1 parent 9719319 commit 9dcb0eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/batch/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ func TestBySize(t *testing.T) {
}

testBySize := func(in []string, maxSize int, encoder func(value string) ([]byte, error)) ([][][]byte, error) {
out := [][][]byte{}
err := BySize(in, maxSize, encoder, func(batch [][]byte) error { out = append(out, batch); return nil })
return out, err
batches := [][][]byte{}
err := BySize(in, maxSize, encoder, func(batch [][]byte) error { batches = append(batches, batch); return nil })
return batches, err
}

{
Expand Down

0 comments on commit 9dcb0eb

Please sign in to comment.