stop using the deprecated libp2p/go-maddr-filter
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)
}
}
