We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3a5641 + 1aa25d5 commit 048b675Copy full SHA for 048b675
executor/batch/utils.go
@@ -14,7 +14,7 @@ import (
14
// prependLength prepends the length of the data to the data.
15
func prependLength(data []byte) []byte {
16
lengthBytes := make([]byte, 8)
17
- binary.LittleEndian.PutUint64(lengthBytes, uint64(len(lengthBytes)))
+ binary.LittleEndian.PutUint64(lengthBytes, uint64(len(data)))
18
return append(lengthBytes, data...)
19
}
20
0 commit comments