mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-02 23:08:07 +08:00
chore: remove duplicate import
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
19cc7c9297
commit
c9ea728880
@ -40,7 +40,6 @@ import (
|
||||
ma "github.com/multiformats/go-multiaddr"
|
||||
mplex "github.com/whyrusleeping/go-smux-multiplex"
|
||||
yamux "github.com/whyrusleeping/go-smux-yamux"
|
||||
"github.com/whyrusleeping/multiaddr-filter"
|
||||
mamask "github.com/whyrusleeping/multiaddr-filter"
|
||||
"go.uber.org/fx"
|
||||
|
||||
@ -98,7 +97,7 @@ func Peerstore(id peer.ID, sk crypto.PrivKey) peerstore.Peerstore {
|
||||
|
||||
func P2PAddrFilters(cfg *config.Config) (opts Libp2pOpts, err error) {
|
||||
for _, s := range cfg.Swarm.AddrFilters {
|
||||
f, err := mask.NewMask(s)
|
||||
f, err := mamask.NewMask(s)
|
||||
if err != nil {
|
||||
return opts, fmt.Errorf("incorrectly formatted address filter in config: %s", s)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user