mirror of https://github.com/milvus-io/milvus.git
[skip ci] Fix golint error in datacoord (#9191)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/9202/head
parent
d34a138f19
commit
5fcae9d956
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue