fix(node/libp2p): disable rcmg checkImplicitDefaults
Lucas Molas committed
May 11, 2022 at 20:05 UTC
f1564862086b005fbe449444e1e5274f6d5df593
1 file changed
+5
-1
core/node/libp2p/rcmgr_defaults.go
+5
-1
@@ -4,6 +4,7 @@ import (
4
"encoding/json"
5
"fmt"
6
"math/bits"
7
+ "os"
8
"strings"
9
10
config "github.com/ipfs/go-ipfs/config"
@@ -19,7 +20,10 @@ import (
20
// such as values in Swarm.ConnMgr.HiWater config.
21
func adjustedDefaultLimits(cfg config.SwarmConfig) rcmgr.DefaultLimitConfig {
22
// 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
+ }
27
28
// Return to use unmodified static limits based on values from go-libp2p 0.18
29
// return defaultLimits