From e108a64135995448932fce63f5d2fea076101ad8 Mon Sep 17 00:00:00 2001 From: jingkl <34296482+jingkl@users.noreply.github.com> Date: Fri, 7 Jan 2022 19:07:32 +0800 Subject: [PATCH] [skip e2e]Add comments to conf adapter file (#15015) 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 81260aa736..7712ee7f64 100644 --- a/internal/util/indexparamcheck/conf_adapter.go +++ b/internal/util/indexparamcheck/conf_adapter.go @@ -431,6 +431,7 @@ type RHNSWSQConfAdapter struct { BaseConfAdapter } +// CheckTrain checks if a rhnsw sq index can be built with specific parameters. func (adapter *RHNSWSQConfAdapter) CheckTrain(params map[string]string) bool { if !CheckIntByRange(params, EFConstruction, HNSWMinEfConstruction, HNSWMaxEfConstruction) { return false