diff --git a/pkg/network/address.go b/pkg/network/address.go index a7831dcf..8fe808a2 100644 --- a/pkg/network/address.go +++ b/pkg/network/address.go @@ -32,8 +32,8 @@ func (a Address) String() string { return a.ma.String() } -// Equal compares Address's. -func (a Address) Equal(addr Address) bool { +// equal compares Address's. +func (a Address) equal(addr Address) bool { return a.ma.Equal(addr.ma) } diff --git a/pkg/network/group.go b/pkg/network/group.go index b2bf5fab..ec999508 100644 --- a/pkg/network/group.go +++ b/pkg/network/group.go @@ -129,7 +129,7 @@ func (x AddressGroup) WriteToNodeInfo(ni *netmap.NodeInfo) { func (x AddressGroup) Intersects(x2 AddressGroup) bool { for i := range x { for j := range x2 { - if x[i].Equal(x2[j]) { + if x[i].equal(x2[j]) { return true } } diff --git a/pkg/network/tls_test.go b/pkg/network/tls_test.go index 122568b3..cdcf1e76 100644 --- a/pkg/network/tls_test.go +++ b/pkg/network/tls_test.go @@ -48,6 +48,6 @@ func TestAddress_AddTLS(t *testing.T) { err := netAddr.FromString(test.want) require.NoError(t, err) - require.True(t, netAddr.Equal(addr), test.input) + require.True(t, netAddr.equal(addr), test.input) } }