From 03c4369314552e45864c6891e869eb102d0b3b44 Mon Sep 17 00:00:00 2001 From: shaoyue Date: Fri, 3 Dec 2021 17:13:39 +0800 Subject: [PATCH] [skip ci] Add comment for BaseConfAdapter.CheckTrain (#12695) Signed-off-by: shaoyue.chen --- 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 6bb7a2d6c..35533bc2b 100644 --- a/internal/util/indexparamcheck/conf_adapter.go +++ b/internal/util/indexparamcheck/conf_adapter.go @@ -124,6 +124,7 @@ type ConfAdapter interface { type BaseConfAdapter struct { } +// CheckTrain check whether the params contains supported metrics types func (adapter *BaseConfAdapter) CheckTrain(params map[string]string) bool { // dimension is specified when create collection //if !CheckIntByRange(params, DIM, DefaultMinDim, DefaultMaxDim) { -- GitLab