From 478daeaeea4a6d1a7aef01924bbce553adc6c70a Mon Sep 17 00:00:00 2001 From: Xiangyu Wang Date: Thu, 14 Oct 2021 12:02:40 +0800 Subject: [PATCH] Fix golint warnings in indexparamcheck (#9863) Signed-off-by: Xiangyu Wang --- internal/util/indexparamcheck/conf_adapter.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/internal/util/indexparamcheck/conf_adapter.go b/internal/util/indexparamcheck/conf_adapter.go index abeac70ebc..06d692e4a5 100644 --- a/internal/util/indexparamcheck/conf_adapter.go +++ b/internal/util/indexparamcheck/conf_adapter.go @@ -74,11 +74,14 @@ const ( // too large of n_trees takes much time, if there is real requirement, change this threshold. MaxNTrees = 1024 - DIM = "dim" + // DIM is a constant used to represent dimension + DIM = "dim" + // Metric is a constant used to metric type Metric = "metric_type" - NLIST = "nlist" - NBITS = "nbits" - IVFM = "m" + // NLIST is a constant used to nlist in Index IVFxxx + NLIST = "nlist" + NBITS = "nbits" + IVFM = "m" KNNG = "knng" SearchLength = "search_length"