stop using the deprecated libp2p/go-maddr-filter

This commit is contained in:
Marten Seemann 2021-12-20 11:23:32 +04:00
parent f3a1f6b22f
commit 15bb90236f
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
package swarm
import (
filter "github.com/libp2p/go-maddr-filter"
ma "github.com/multiformats/go-multiaddr"
mamask "github.com/whyrusleeping/multiaddr-filter"
)
@ -31,6 +30,6 @@ func init() {
if err != nil {
panic("error in lowTimeoutFilters init: " + err.Error())
}
lowTimeoutFilters.AddFilter(*f, filter.ActionDeny)
lowTimeoutFilters.AddFilter(*f, ma.ActionDeny)
}
}