[skip ci]Fix golint error for initPort in indexnode (#12568)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2021-12-01 22:19:52 +08:00 committed by GitHub
parent 5e3e3b3b41
commit 518b9fe9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,7 @@ func (pt *ParamTable) initParams() {
pt.initServerMaxRecvSize()
}
// initPort initializes the port of IndexNode service.
func (pt *ParamTable) initPort() {
port := pt.ParseInt("indexNode.port")
pt.Port = port