mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
Merge pull request #202 from ethersphere/swarm-network-rewrite-green
swarm/storage/mock: Omit test on <1.8
This commit is contained in:
commit
c7ce92fe46
2 changed files with 5 additions and 3 deletions
|
|
@ -225,15 +225,15 @@ func cmdLineOverride(currentConfig *bzzapi.Config, ctx *cli.Context) *bzzapi.Con
|
||||||
}
|
}
|
||||||
|
|
||||||
if storeCapacity := ctx.GlobalUint64(SwarmStoreCapacity.Name); storeCapacity != 0 {
|
if storeCapacity := ctx.GlobalUint64(SwarmStoreCapacity.Name); storeCapacity != 0 {
|
||||||
currentConfig.StoreParams.DbCapacity = uint64(storeCapacity)
|
currentConfig.StoreParams.DbCapacity = storeCapacity
|
||||||
}
|
}
|
||||||
|
|
||||||
if storeCacheCapacity := ctx.GlobalUint(SwarmStoreCacheCapacity.Name); storeCacheCapacity != 0 {
|
if storeCacheCapacity := ctx.GlobalUint(SwarmStoreCacheCapacity.Name); storeCacheCapacity != 0 {
|
||||||
currentConfig.StoreParams.CacheCapacity = uint(storeCacheCapacity)
|
currentConfig.StoreParams.CacheCapacity = storeCacheCapacity
|
||||||
}
|
}
|
||||||
|
|
||||||
if storeRadius := ctx.GlobalInt(SwarmStoreRadius.Name); storeRadius != 0 {
|
if storeRadius := ctx.GlobalInt(SwarmStoreRadius.Name); storeRadius != 0 {
|
||||||
currentConfig.StoreParams.Radius = int(storeRadius)
|
currentConfig.StoreParams.Radius = storeRadius
|
||||||
}
|
}
|
||||||
|
|
||||||
return currentConfig
|
return currentConfig
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build go1.8
|
||||||
|
//
|
||||||
// Copyright 2018 The go-ethereum Authors
|
// Copyright 2018 The go-ethereum Authors
|
||||||
// This file is part of the go-ethereum library.
|
// This file is part of the go-ethereum library.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue