mirror of https://github.com/milvus-io/milvus.git
[skip ci] Fix golint error in rootcoord (#9190)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/9202/head
parent
9e4dbee610
commit
d34a138f19
|
@ -22,9 +22,12 @@ import (
|
|||
"github.com/milvus-io/milvus/internal/util/paramtable"
|
||||
)
|
||||
|
||||
// Params is a package scoped variable of type ParamTable.
|
||||
var Params ParamTable
|
||||
var once sync.Once
|
||||
|
||||
// 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
|
||||
|
||||
|
@ -39,6 +42,8 @@ type ParamTable struct {
|
|||
ServerMaxRecvSize int
|
||||
}
|
||||
|
||||
// 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() {
|
||||
once.Do(func() {
|
||||
p.BaseTable.Init()
|
||||
|
|
Loading…
Reference in New Issue