[skip ci] Fix golint error in datacoord (#9191)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
pull/9202/head
zhenshan.cao 2021-10-04 13:20:51 +08:00 committed by GitHub
parent d34a138f19
commit 5fcae9d956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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()