mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 05:47:51 +08:00
Merge pull request #8965 from ipfs/schomatis/fix/disable-rcmg-checks
fix(node/libp2p): disable rcmgr checkImplicitDefaults
(cherry picked from commit e23a4611d8)
This commit is contained in:
parent
ec6e6f82b9
commit
d8d7c215e8
@ -32,6 +32,7 @@ default_environment: &default_environment
|
||||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
|
||||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
||||
GIT_PAGER: cat
|
||||
IPFS_CHECK_RCMGR_DEFAULTS: 1
|
||||
|
||||
executors:
|
||||
golang:
|
||||
|
||||
@ -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