[skip ci] Add comments for utility function CompareIndexParams (#8525)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2021-09-24 22:05:55 +08:00 committed by GitHub
parent 5e25041254
commit 54331f4aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,9 @@ package typeutil
import "github.com/milvus-io/milvus/internal/proto/commonpb"
// CompareIndexParams compares indexParam1 with indexParam2. When all keys of indexParam1 exist in indexParam2,
// and the corresponding value are the same as in indexParam2, return true
// Otherwise return false
func CompareIndexParams(indexParam1 []*commonpb.KeyValuePair, indexParam2 []*commonpb.KeyValuePair) bool {
if indexParam1 == nil && indexParam2 == nil {
return true