[skip ci]Fix error log output format in convension.go (#13383)

Signed-off-by: JackLCL <chenglong.li@zilliz.com>
pull/13927/head
JackLCL 2021-12-22 10:05:34 +08:00 committed by GitHub
parent 899c484630
commit 3e798a06c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ func Int64ToBytes(v int64) []byte {
// BigEndianBytesToUint64 converts a byte slice (big endian) to uint64.
func BigEndianBytesToUint64(b []byte) (uint64, error) {
if len(b) != 8 {
return 0, fmt.Errorf("Failed to convert []byte to uint64: invalid data, must 8 bytes, but %d", len(b))
return 0, fmt.Errorf("failed to convert []byte to uint64: invalid data, must 8 bytes, but %d", len(b))
}
// do not use little or common endian for compatibility issues(the msgid used in rocksmq is using this)