[skip ci]Fix golint in indexnode/client/param_table.go (#9119)

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
pull/9182/head
cai.zhang 2021-10-04 08:21:00 +08:00 committed by GitHub
parent 91e4adff15
commit 95a0cc8741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import (
"github.com/milvus-io/milvus/internal/util/paramtable"
)
// ParamTable is used to record configuration items.
type ParamTable struct {
paramtable.BaseTable
@ -29,9 +30,11 @@ type ParamTable struct {
ClientMaxRecvSize int
}
// Params is an instance of ParamTable.
var Params ParamTable
var once sync.Once
// Init is used to initialize configuration items.
func (pt *ParamTable) Init() {
once.Do(func() {
pt.BaseTable.Init()