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

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
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

View File

@ -28,12 +28,14 @@ import (
"github.com/milvus-io/milvus/internal/log" "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 { type Partition struct {
collectionID UniqueID collectionID UniqueID
partitionID UniqueID partitionID UniqueID
segmentIDs []UniqueID segmentIDs []UniqueID
} }
// ID returns the identity of the partition.
func (p *Partition) ID() UniqueID { func (p *Partition) ID() UniqueID {
return p.partitionID return p.partitionID
} }