From 62c65d234a8ff9b991cfae83b1eb42641ffbb3c6 Mon Sep 17 00:00:00 2001 From: "cai.zhang" Date: Mon, 11 Oct 2021 21:38:49 +0800 Subject: [PATCH] [skip ci]Fix golint error in distributed/querynode/client/param_table.go (#9645) Signed-off-by: cai.zhang --- internal/distributed/querynode/client/param_table.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/distributed/querynode/client/param_table.go b/internal/distributed/querynode/client/param_table.go index 7a5f0184f2..fc344cbd91 100644 --- a/internal/distributed/querynode/client/param_table.go +++ b/internal/distributed/querynode/client/param_table.go @@ -22,6 +22,8 @@ import ( "github.com/milvus-io/milvus/internal/util/paramtable" ) +// ParamTable is a derived struct of paramtable.BaseTable. It achieves Composition by +// embedding paramtable.BaseTable. It is used to quickly and easily access the system configuration. type ParamTable struct { paramtable.BaseTable @@ -29,9 +31,12 @@ type ParamTable struct { ClientMaxRecvSize int } +// Params is a package scoped variable of type ParamTable. var Params ParamTable var once sync.Once +// Init is an override method of BaseTable's Init. It mainly calls the +// Init of BaseTable and do some other initialization. func (pt *ParamTable) Init() { once.Do(func() { pt.BaseTable.Init()