mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci]Fix error log output format in convension.go (#13228)
Signed-off-by: JackLCL <chenglong.li@zilliz.com>
This commit is contained in:
parent
25c2935324
commit
d6cb943f87
@ -39,7 +39,7 @@ func BytesToFloat32(bytes []byte) float32 {
|
||||
// BytesToInt64 converts a byte slice to uint64.
|
||||
func BytesToInt64(b []byte) (int64, error) {
|
||||
if len(b) != 8 {
|
||||
return 0, fmt.Errorf("Failed to convert []byte to int64: invalid data, must 8 bytes, but %d", len(b))
|
||||
return 0, fmt.Errorf("failed to convert []byte to int64: invalid data, must 8 bytes, but %d", len(b))
|
||||
}
|
||||
|
||||
return int64(common.Endian.Uint64(b)), nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user