From ad81a06abf2ebdafc3414b39387a781c850820ef Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Wed, 19 Oct 2022 12:37:44 +0200 Subject: [PATCH] Requested changes --- core/node/libp2p/rcmgr_logging.go | 4 ++-- core/node/libp2p/rcmgr_logging_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/node/libp2p/rcmgr_logging.go b/core/node/libp2p/rcmgr_logging.go index 984736c8759..57be9205b8e 100644 --- a/core/node/libp2p/rcmgr_logging.go +++ b/core/node/libp2p/rcmgr_logging.go @@ -52,12 +52,12 @@ func (n *loggingResourceManager) start(ctx context.Context) { for e, count := range errs { n.previousErrors = true - n.logger.Errorf("Resource limits were exceeded %d times with error %q. Consider inspecting logs and raising the resource manager limits.", count, e) + n.logger.Errorf("Resource limits were exceeded %d times with error %q. Consider inspecting logs and raising the resource manager limits. Documentation: https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmresourcemgr", count, e) } if len(errs) == 0 && n.previousErrors { n.previousErrors = false - n.logger.Errorf("Resource limits were back to normal.") + n.logger.Errorf("Resrouce limits are no longer being exceeded.") } n.mut.Unlock() diff --git a/core/node/libp2p/rcmgr_logging_test.go b/core/node/libp2p/rcmgr_logging_test.go index f37a8515858..5be4276e5ad 100644 --- a/core/node/libp2p/rcmgr_logging_test.go +++ b/core/node/libp2p/rcmgr_logging_test.go @@ -55,7 +55,7 @@ func TestLoggingResourceManager(t *testing.T) { if oLogs.Len() == 0 { continue } - require.Equal(t, "Resource limits were exceeded 2 times with error \"system: cannot reserve inbound connection: resource limit exceeded\". Consider inspecting logs and raising the resource manager limits.", oLogs.All()[0].Message) + require.Equal(t, "Resource limits were exceeded 2 times with error \"system: cannot reserve inbound connection: resource limit exceeded\". Consider inspecting logs and raising the resource manager limits. Documentation: https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmresourcemgr", oLogs.All()[0].Message) return } }