From 0e4df25e362708f7ac663ec886f1e4fed9908fed Mon Sep 17 00:00:00 2001 From: jingkl <34296482+jingkl@users.noreply.github.com> Date: Tue, 4 Jan 2022 14:23:22 +0800 Subject: [PATCH] [skip e2e]Add comments to conf adapter file (#14760) Signed-off-by: jingkl --- internal/util/indexparamcheck/conf_adapter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/util/indexparamcheck/conf_adapter.go b/internal/util/indexparamcheck/conf_adapter.go index 1bf48e9550..a914b4ded3 100644 --- a/internal/util/indexparamcheck/conf_adapter.go +++ b/internal/util/indexparamcheck/conf_adapter.go @@ -298,6 +298,7 @@ func newBinIVFConfAdapter() *BinIVFConfAdapter { type NSGConfAdapter struct { } +// CheckTrain checks if a nsg index can be built with specific parameters. func (adapter *NSGConfAdapter) CheckTrain(params map[string]string) bool { if !CheckStrByValues(params, Metric, METRICS) { return false