From 21a6ce86475076fdcb9eaffa1c05bfeed8460936 Mon Sep 17 00:00:00 2001 From: congqixia Date: Thu, 2 Dec 2021 19:15:33 +0800 Subject: [PATCH] Remove redundant conversion in event_writer.go (#12590) Signed-off-by: Congqi Xia --- internal/storage/event_writer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/storage/event_writer.go b/internal/storage/event_writer.go index b1bf97ba4f..3b408ce950 100644 --- a/internal/storage/event_writer.go +++ b/internal/storage/event_writer.go @@ -17,7 +17,6 @@ import ( "errors" "fmt" "io" - "strconv" "github.com/milvus-io/milvus/internal/common" "github.com/milvus-io/milvus/internal/proto/schemapb" @@ -86,7 +85,7 @@ func readMagicNumber(buffer io.Reader) (int32, error) { return -1, err } if magicNumber != MagicNumber { - return -1, fmt.Errorf("parse magic number failed, expected: %s, actual: %s", strconv.Itoa(int(MagicNumber)), strconv.Itoa(int(magicNumber))) + return -1, fmt.Errorf("parse magic number failed, expected: %d, actual: %d", MagicNumber, magicNumber) } return magicNumber, nil