From 8f2ccd94d30033fd168a0e7b908479cab886a348 Mon Sep 17 00:00:00 2001 From: gammazero Date: Fri, 17 May 2024 10:02:37 -0700 Subject: [PATCH] Update go-multiaddr --- go.mod | 2 +- go.sum | 4 ++-- mautil/mautil_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 8de63f6..7c60608 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/libp2p/go-libp2p-pubsub v0.10.1 github.com/libp2p/go-msgio v0.3.0 github.com/mr-tron/base58 v1.2.0 - github.com/multiformats/go-multiaddr v0.12.3 + github.com/multiformats/go-multiaddr v0.12.4 github.com/multiformats/go-multicodec v0.9.0 github.com/multiformats/go-multihash v0.2.3 github.com/multiformats/go-multistream v0.5.0 diff --git a/go.sum b/go.sum index c42741b..9752ee9 100644 --- a/go.sum +++ b/go.sum @@ -379,8 +379,8 @@ github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9 github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4= github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= github.com/multiformats/go-multiaddr v0.2.0/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4= -github.com/multiformats/go-multiaddr v0.12.3 h1:hVBXvPRcKG0w80VinQ23P5t7czWgg65BmIvQKjDydU8= -github.com/multiformats/go-multiaddr v0.12.3/go.mod h1:sBXrNzucqkFJhvKOiwwLyqamGa/P5EIXNPLovyhQCII= +github.com/multiformats/go-multiaddr v0.12.4 h1:rrKqpY9h+n80EwhhC/kkcunCZZ7URIF8yN1WEUt2Hvc= +github.com/multiformats/go-multiaddr v0.12.4/go.mod h1:sBXrNzucqkFJhvKOiwwLyqamGa/P5EIXNPLovyhQCII= github.com/multiformats/go-multiaddr-dns v0.3.1 h1:QgQgR+LQVt3NPTjbrLLpsaT2ufAA2y0Mkk+QRVJbW3A= github.com/multiformats/go-multiaddr-dns v0.3.1/go.mod h1:G/245BRQ6FJGmryJCrOuTdB37AMA5AMOVuO6NY3JwTk= github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E= diff --git a/mautil/mautil_test.go b/mautil/mautil_test.go index 3eb61a3..382d1ae 100644 --- a/mautil/mautil_test.go +++ b/mautil/mautil_test.go @@ -26,7 +26,7 @@ func TestFilterPublic(t *testing.T) { maddrs, err := mautil.StringsToMultiaddrs(addrs) require.NoError(t, err) - expected := []multiaddr.Multiaddr{maddrs[1], maddrs[3], maddrs[5]} + expected := []multiaddr.Multiaddr{maddrs[1], maddrs[5]} filtered := mautil.FilterPublic(maddrs) require.Equal(t, len(expected), len(filtered))