Skip to content

Commit

Permalink
add default value for tls cert path and server name (zilliztech#501)
Browse files Browse the repository at this point in the history
Signed-off-by: huanghaoyuanhhy <haoyuan.huang@zilliz.com>
  • Loading branch information
huanghaoyuanhhy authored Jan 13, 2025
1 parent d39b7d6 commit 731d697
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions core/paramtable/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,12 @@ func (p *MilvusConfig) initPassword() {
}

func (p *MilvusConfig) initTLSCertPath() {
tlsCertPath, err := p.Base.Load("milvus.tlsCertPath")
if err != nil {
panic(err)
}
tlsCertPath := p.Base.LoadWithDefault("milvus.tlsCertPath", "")
p.TLSCertPath = tlsCertPath
}

func (p *MilvusConfig) initServerName() {
serverName, err := p.Base.Load("milvus.serverName")
if err != nil {
panic(err)
}
serverName := p.Base.LoadWithDefault("milvus.serverName", "")
p.ServerName = serverName
}

Expand Down

0 comments on commit 731d697

Please sign in to comment.