From c0a4a781f561dca15307cf62294739ec962fcfc3 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 18 Oct 2024 18:44:48 +0200 Subject: [PATCH] refactor: network.MultiaddrDNSResolver chore to make sure we can switch to go-libp2p release as soon it happens --- core/node/libp2p/dns.go | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/node/libp2p/dns.go b/core/node/libp2p/dns.go index 1c56a2c0a87..5dd51b2d4bb 100644 --- a/core/node/libp2p/dns.go +++ b/core/node/libp2p/dns.go @@ -2,10 +2,10 @@ package libp2p import ( "github.com/libp2p/go-libp2p" - madns "github.com/multiformats/go-multiaddr-dns" + "github.com/libp2p/go-libp2p/core/network" ) -func MultiaddrResolver(rslv *madns.Resolver) (opts Libp2pOpts, err error) { +func MultiaddrResolver(rslv network.MultiaddrDNSResolver) (opts Libp2pOpts, err error) { opts.Opts = append(opts.Opts, libp2p.MultiaddrResolver(rslv)) return opts, nil } diff --git a/go.mod b/go.mod index 66a3a2a1621..5a95971da12 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module github.com/ipfs/kubo go 1.23 -replace github.com/libp2p/go-libp2p => github.com/libp2p/go-libp2p v0.36.3-0.20241009065418-fa09c6c99b1d +replace github.com/libp2p/go-libp2p => github.com/libp2p/go-libp2p v0.36.3-0.20241017030843-b9cb861a98b4 require ( bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc diff --git a/go.sum b/go.sum index e7a776f65b5..c9824f0fca8 100644 --- a/go.sum +++ b/go.sum @@ -543,8 +543,8 @@ github.com/libp2p/go-flow-metrics v0.0.1/go.mod h1:Iv1GH0sG8DtYN3SVJ2eG221wMiNpZ github.com/libp2p/go-flow-metrics v0.0.3/go.mod h1:HeoSNUrOJVK1jEpDqVEiUOIXqhbnS27omG0uWU5slZs= github.com/libp2p/go-flow-metrics v0.1.0 h1:0iPhMI8PskQwzh57jB9WxIuIOQ0r+15PChFGkx3Q3WM= github.com/libp2p/go-flow-metrics v0.1.0/go.mod h1:4Xi8MX8wj5aWNDAZttg6UPmc0ZrnFNsMtpsYUClFtro= -github.com/libp2p/go-libp2p v0.36.3-0.20241009065418-fa09c6c99b1d h1:xAUGH+UOC6gfcL7GIeMos0B8RJvCHcfhxiykmGiqSm8= -github.com/libp2p/go-libp2p v0.36.3-0.20241009065418-fa09c6c99b1d/go.mod h1:TTwkIltN7SS41Lljqp+kuI8iKp/0iyqExGinvx5PWJg= +github.com/libp2p/go-libp2p v0.36.3-0.20241017030843-b9cb861a98b4 h1:5hLIM2ecurb5VpJCZo2XMcVuJ0mFmRFNRf0Ynwn5b4U= +github.com/libp2p/go-libp2p v0.36.3-0.20241017030843-b9cb861a98b4/go.mod h1:TTwkIltN7SS41Lljqp+kuI8iKp/0iyqExGinvx5PWJg= github.com/libp2p/go-libp2p-asn-util v0.4.1 h1:xqL7++IKD9TBFMgnLPZR6/6iYhawHKHl950SO9L6n94= github.com/libp2p/go-libp2p-asn-util v0.4.1/go.mod h1:d/NI6XZ9qxw67b4e+NgpQexCIiFYJjErASrYW4PFDN8= github.com/libp2p/go-libp2p-core v0.2.4/go.mod h1:STh4fdfa5vDYr0/SzYYeqnt+E6KfEV5VxfIrm0bcI0g=