From a4cddd950b4ba7d0b0a28941c1c770a2d8c9a3c5 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Tue, 5 Oct 2021 21:36:24 +0800 Subject: [PATCH] [skip ci] Fix golint error in querynode (#9288) Signed-off-by: zhenshan.cao --- internal/querynode/partition.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/querynode/partition.go b/internal/querynode/partition.go index cfb0690842..767fdc04ab 100644 --- a/internal/querynode/partition.go +++ b/internal/querynode/partition.go @@ -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 }