From bbafd05911053fcdc25644f49f2d87100cc036fe Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Thu, 14 Oct 2021 14:04:34 +0800 Subject: [PATCH] [skip ci]Fix golint error in paramtable (#9851) Signed-off-by: zhenshan.cao --- internal/util/paramtable/param.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/util/paramtable/param.go b/internal/util/paramtable/param.go index c301b975f3..eeba2e6fbe 100644 --- a/internal/util/paramtable/param.go +++ b/internal/util/paramtable/param.go @@ -21,9 +21,12 @@ import ( "github.com/milvus-io/milvus/internal/log" ) +// Params is a package scoped variable of type BaseParamTable. var Params BaseParamTable var once sync.Once +// BaseParamTable is a derived struct of BaseTable. It achieves Composition by +// embedding BaseTable. It is used to quickly and easily access the system configuration. type BaseParamTable struct { BaseTable @@ -42,6 +45,8 @@ type BaseParamTable struct { LogConfig *log.Config } +// Init is an override method of BaseTable's Init. It mainly calls the +// Init of BaseTable and do some other initialization. func (p *BaseParamTable) Init() { p.initOnce.Do(func() { p.BaseTable.Init()