mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Use fmt.Errorf instead of string concat in querynode/segment.go (#16422)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
7af02fa531
commit
bb69e09736
@ -33,7 +33,6 @@ import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"sync"
|
||||
"unsafe"
|
||||
|
||||
@ -165,7 +164,7 @@ func (s *Segment) getIndexedFieldInfo(fieldID UniqueID) (*IndexedFieldInfo, erro
|
||||
indexInfo: info.indexInfo,
|
||||
}, nil
|
||||
}
|
||||
return nil, errors.New("Invalid fieldID " + strconv.Itoa(int(fieldID)))
|
||||
return nil, fmt.Errorf("Invalid fieldID %d", fieldID)
|
||||
}
|
||||
|
||||
func (s *Segment) hasLoadIndexForIndexedField(fieldID int64) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user