[skip ci]Fix golint error in segment.go (#11203)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/11206/head
zhenshan.cao 2021-11-03 23:50:14 +08:00 committed by GitHub
parent 59277d6edc
commit 34c4ef06fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
}