diff --git a/executor/batch/utils.go b/executor/batch/utils.go index 5ce9c90..bee9b9b 100644 --- a/executor/batch/utils.go +++ b/executor/batch/utils.go @@ -14,7 +14,7 @@ import ( // prependLength prepends the length of the data to the data. func prependLength(data []byte) []byte { lengthBytes := make([]byte, 8) - binary.LittleEndian.PutUint64(lengthBytes, uint64(len(lengthBytes))) + binary.LittleEndian.PutUint64(lengthBytes, uint64(len(data))) return append(lengthBytes, data...) }