forked from TrueCloudLab/frostfs-node
[#607] network: Rename Address.HostAddrString method to HostAddr
Return tyype is clear from the method's signature and docs, there is no point in reflecting it in the name. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
35f81729e4
commit
47fe8911a3
6 changed files with 10 additions and 10 deletions
2
pkg/network/cache/client.go
vendored
2
pkg/network/cache/client.go
vendored
|
@ -54,7 +54,7 @@ func (c *ClientCache) Get(netAddr *network.Address) (client.Client, error) {
|
|||
return cli, nil
|
||||
}
|
||||
|
||||
opts := append(c.opts, client.WithAddress(netAddr.HostAddrString()))
|
||||
opts := append(c.opts, client.WithAddress(netAddr.HostAddr()))
|
||||
|
||||
if netAddr.TLSEnabled() {
|
||||
opts = append(opts, client.WithTLSConfig(&tls.Config{}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue