Skip to content

Commit e23a461

Browse files
authored
Merge pull request #8965 from ipfs/schomatis/fix/disable-rcmg-checks
fix(node/libp2p): disable rcmgr checkImplicitDefaults
2 parents 657d4f4 + 28a71e8 commit e23a461

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.circleci/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ default_environment: &default_environment
3232
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
3333
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
3434
GIT_PAGER: cat
35+
IPFS_CHECK_RCMGR_DEFAULTS: 1
3536

3637
executors:
3738
golang:

core/node/libp2p/rcmgr_defaults.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"encoding/json"
55
"fmt"
66
"math/bits"
7+
"os"
78
"strings"
89

910
config "github.com/ipfs/go-ipfs/config"
@@ -19,7 +20,10 @@ import (
1920
// such as values in Swarm.ConnMgr.HiWater config.
2021
func adjustedDefaultLimits(cfg config.SwarmConfig) rcmgr.DefaultLimitConfig {
2122
// Run checks to avoid introducing regressions
22-
checkImplicitDefaults()
23+
if os.Getenv("IPFS_CHECK_RCMGR_DEFAULTS") != "" {
24+
// FIXME: Broken. Being tracked in https://github.com/ipfs/go-ipfs/issues/8949.
25+
checkImplicitDefaults()
26+
}
2327

2428
// Return to use unmodified static limits based on values from go-libp2p 0.18
2529
// return defaultLimits

0 commit comments

Comments
 (0)