From 19090e540ef61649d7c51bac6827d3f216b53502 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sun, 3 Jul 2022 02:44:08 -0700 Subject: [PATCH] docs: point to SetDefaultServiceLimits in ResourceManager option (#1636) --- options.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/options.go b/options.go index ce40fa5d34..312d08a24e 100644 --- a/options.go +++ b/options.go @@ -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 {