Skip to content

Commit

Permalink
doc: point to SetDefaultServiceLimits in ResourceManager option
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jul 2, 2022
1 parent 0d7f192 commit b070c51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ func ConnectionGater(cg connmgr.ConnectionGater) Option {
}

// ResourceManager configures libp2p to use the given ResourceManager.
// When using the go-libp2p-resource-manager implementation of the ResourceManager interface,
// it is recommended to set limits for libp2p protocol by calling SetDefaultServiceLimits.
func ResourceManager(rcmgr network.ResourceManager) Option {
return func(cfg *Config) error {
if cfg.ResourceManager != nil {
Expand Down

0 comments on commit b070c51

Please sign in to comment.