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

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2021-10-11 19:17:02 +08:00 committed by GitHub
parent 8702a06252
commit 6938e7b8e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,10 +51,11 @@ type ParamTable struct {
UpdatedTime time.Time
}
// Params is an alias for ParamTable.
// Params is a package scoped variable of type ParamTable.
var Params ParamTable
var once sync.Once
// InitAlias initializes an alias for the IndexNode role.
func (pt *ParamTable) InitAlias(alias string) {
pt.Alias = alias
}