mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-01-27 12:50:07 +08:00
17 lines
549 B
Go
17 lines
549 B
Go
package rcmgr
|
|
|
|
import (
|
|
rcmgr "github.com/libp2p/go-libp2p/p2p/host/resource-manager"
|
|
|
|
"github.com/multiformats/go-multiaddr"
|
|
)
|
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.Allowlist instead
|
|
type Allowlist = rcmgr.Allowlist
|
|
|
|
// WithAllowlistedMultiaddrs sets the multiaddrs to be in the allowlist
|
|
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.WithAllowlistedMultiaddrs instead
|
|
func WithAllowlistedMultiaddrs(mas []multiaddr.Multiaddr) Option {
|
|
return rcmgr.WithAllowlistedMultiaddrs(mas)
|
|
}
|