[#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:
Leonard Lyubich 2021-06-16 14:12:03 +03:00 committed by Leonard Lyubich
parent 35f81729e4
commit 47fe8911a3
6 changed files with 10 additions and 10 deletions

View file

@ -83,7 +83,7 @@ func (p *testPlacementBuilder) BuildPlacement(addr *objectSDK.Address, _ *netmap
}
func (c *testClientCache) get(mAddr *network.Address) (getClient, error) {
v, ok := c.clients[mAddr.HostAddrString()]
v, ok := c.clients[mAddr.HostAddr()]
if !ok {
return nil, errors.New("could not construct client")
}
@ -410,7 +410,7 @@ func testNodeMatrix(t testing.TB, dim []int) ([]netmap.Nodes, [][]string) {
na, err := network.AddressFromString(a)
require.NoError(t, err)
as[j] = na.HostAddrString()
as[j] = na.HostAddr()
ni := netmap.NewNodeInfo()
ni.SetAddress(a)