mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 02:40:11 +08:00
fix(node/libp2p): disable rcmg checkImplicitDefaults
This commit is contained in:
parent
657d4f4dd9
commit
f156486208
@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"math/bits"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
config "github.com/ipfs/go-ipfs/config"
|
||||
@ -19,7 +20,10 @@ import (
|
||||
// such as values in Swarm.ConnMgr.HiWater config.
|
||||
func adjustedDefaultLimits(cfg config.SwarmConfig) rcmgr.DefaultLimitConfig {
|
||||
// Run checks to avoid introducing regressions
|
||||
checkImplicitDefaults()
|
||||
if os.Getenv("IPFS_CHECK_RCMGR_DEFAULTS") != "" {
|
||||
// FIXME: Broken. Being tracked in https://github.com/ipfs/go-ipfs/issues/8949.
|
||||
checkImplicitDefaults()
|
||||
}
|
||||
|
||||
// Return to use unmodified static limits based on values from go-libp2p 0.18
|
||||
// return defaultLimits
|
||||
|
||||
Loading…
Reference in New Issue
Block a user