mirror of https://github.com/milvus-io/milvus.git
[skip ci]Fix golint error in segment.go (#11203)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/11206/head
parent
59277d6edc
commit
34c4ef06fc
|
@ -66,7 +66,7 @@ func newVectorFieldInfo(fieldBinlog *datapb.FieldBinlog) *VectorFieldInfo {
|
|||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------
|
||||
// Segment is a wrapper of the underlying C-structure segment.
|
||||
type Segment struct {
|
||||
segPtrMu sync.RWMutex // guards segmentPtr
|
||||
segmentPtr C.CSegmentInterface
|
||||
|
@ -101,7 +101,7 @@ type Segment struct {
|
|||
pkFilter *bloom.BloomFilter // bloom filter of pk inside a segment
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------------- common interfaces
|
||||
// ID returns the identity number.
|
||||
func (s *Segment) ID() UniqueID {
|
||||
return s.segmentID
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue