From 5fcae9d9569c014e7097f42358ddb758546f7a29 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Mon, 4 Oct 2021 13:20:51 +0800 Subject: [PATCH] [skip ci] Fix golint error in datacoord (#9191) Signed-off-by: zhenshan.cao --- internal/datacoord/param_table.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/datacoord/param_table.go b/internal/datacoord/param_table.go index af2ad3de09..889b73dd96 100644 --- a/internal/datacoord/param_table.go +++ b/internal/datacoord/param_table.go @@ -19,6 +19,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 @@ -60,10 +62,12 @@ type ParamTable struct { UpdatedTime time.Time } +// Params is a package scoped variable of type ParamTable. var Params ParamTable var once sync.Once -// Init inits params from base table as well as data coord yaml +// Init is an override method of BaseTable's Init. It mainly calls the +// Init of BaseTable and do some other initialization. func (p *ParamTable) Init() { // load yaml p.BaseTable.Init()