From 32f6bfd0a558546911b3b2c657579d5d441da13b Mon Sep 17 00:00:00 2001 From: Victor Farazdagi Date: Wed, 2 Dec 2020 22:21:43 +0300 Subject: [PATCH] update deprecated multiaddr package (#8022) --- beacon-chain/p2p/BUILD.bazel | 2 +- beacon-chain/p2p/connection_gater.go | 2 +- go.mod | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/beacon-chain/p2p/BUILD.bazel b/beacon-chain/p2p/BUILD.bazel index fbfe93b06..bdc76d5e6 100644 --- a/beacon-chain/p2p/BUILD.bazel +++ b/beacon-chain/p2p/BUILD.bazel @@ -81,7 +81,7 @@ go_library( "@com_github_libp2p_go_libp2p_pubsub//:go_default_library", "@com_github_libp2p_go_libp2p_pubsub//pb:go_default_library", "@com_github_multiformats_go_multiaddr//:go_default_library", - "@com_github_multiformats_go_multiaddr_net//:go_default_library", + "@com_github_multiformats_go_multiaddr//net:go_default_library", "@com_github_pkg_errors//:go_default_library", "@com_github_prometheus_client_golang//prometheus:go_default_library", "@com_github_prometheus_client_golang//prometheus/promauto:go_default_library", diff --git a/beacon-chain/p2p/connection_gater.go b/beacon-chain/p2p/connection_gater.go index 7a9d71cf7..001ce36a6 100644 --- a/beacon-chain/p2p/connection_gater.go +++ b/beacon-chain/p2p/connection_gater.go @@ -9,7 +9,7 @@ import ( "github.com/libp2p/go-libp2p-core/peer" "github.com/multiformats/go-multiaddr" filter "github.com/multiformats/go-multiaddr" - manet "github.com/multiformats/go-multiaddr-net" + manet "github.com/multiformats/go-multiaddr/net" "github.com/sirupsen/logrus" ) diff --git a/go.mod b/go.mod index 1a3c7906b..e88dd12c2 100644 --- a/go.mod +++ b/go.mod @@ -73,7 +73,6 @@ require ( github.com/minio/sha256-simd v0.1.1 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 github.com/multiformats/go-multiaddr v0.3.1 - github.com/multiformats/go-multiaddr-net v0.2.0 github.com/nbutton23/zxcvbn-go v0.0.0-20180912185939-ae427f1e4c1d github.com/olekukonko/tablewriter v0.0.4 // indirect github.com/patrickmn/go-cache v2.1.0+incompatible