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.
1 parent d3a5641 commit 1aa25d5Copy full SHA for 1aa25d5
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