[skip ci] Fix golint error in querynode (#9288)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/9292/head
zhenshan.cao 2021-10-05 21:36:24 +08:00 committed by GitHub
parent ca3bf67e72
commit a4cddd950b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -28,12 +28,14 @@ import (
"github.com/milvus-io/milvus/internal/log"
)
// Partition is a logical division of Collection and can be considered as an attribute of Segment.
type Partition struct {
collectionID UniqueID
partitionID UniqueID
segmentIDs []UniqueID
}
// ID returns the identity of the partition.
func (p *Partition) ID() UniqueID {
return p.partitionID
}