Skip to content

Commit 1aa25d5

Browse files
committed
bug fix prepending length
1 parent d3a5641 commit 1aa25d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

executor/batch/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
// prependLength prepends the length of the data to the data.
1515
func prependLength(data []byte) []byte {
1616
lengthBytes := make([]byte, 8)
17-
binary.LittleEndian.PutUint64(lengthBytes, uint64(len(lengthBytes)))
17+
binary.LittleEndian.PutUint64(lengthBytes, uint64(len(data)))
1818
return append(lengthBytes, data...)
1919
}
2020

0 commit comments

Comments
 (0)