cmd/swarm: do not ignore cache size=0 (#19231)
This commit is contained in:
parent
316b63daf0
commit
4687391213
@ -255,8 +255,8 @@ func cmdLineOverride(currentConfig *bzzapi.Config, ctx *cli.Context) *bzzapi.Con
|
|||||||
currentConfig.LocalStoreParams.DbCapacity = storeCapacity
|
currentConfig.LocalStoreParams.DbCapacity = storeCapacity
|
||||||
}
|
}
|
||||||
|
|
||||||
if storeCacheCapacity := ctx.GlobalUint(SwarmStoreCacheCapacity.Name); storeCacheCapacity != 0 {
|
if ctx.GlobalIsSet(SwarmStoreCacheCapacity.Name) {
|
||||||
currentConfig.LocalStoreParams.CacheCapacity = storeCacheCapacity
|
currentConfig.LocalStoreParams.CacheCapacity = ctx.GlobalUint(SwarmStoreCacheCapacity.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.GlobalIsSet(SwarmBootnodeModeFlag.Name) {
|
if ctx.GlobalIsSet(SwarmBootnodeModeFlag.Name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user