Skip to content

Commit 245e7da

Browse files
committed
fix(node/libp2p): disable rcmg checkImplicitDefaults
1 parent 4798777 commit 245e7da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)