Skip to content

Commit

Permalink
cmd/swarm: do not ignore cache size=0 (ethereum#19231)
Browse files Browse the repository at this point in the history
  • Loading branch information
acud authored and nonsense committed Mar 7, 2019
1 parent 316b63d commit 4687391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/swarm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ func cmdLineOverride(currentConfig *bzzapi.Config, ctx *cli.Context) *bzzapi.Con
currentConfig.LocalStoreParams.DbCapacity = storeCapacity
}

if storeCacheCapacity := ctx.GlobalUint(SwarmStoreCacheCapacity.Name); storeCacheCapacity != 0 {
currentConfig.LocalStoreParams.CacheCapacity = storeCacheCapacity
if ctx.GlobalIsSet(SwarmStoreCacheCapacity.Name) {
currentConfig.LocalStoreParams.CacheCapacity = ctx.GlobalUint(SwarmStoreCacheCapacity.Name)
}

if ctx.GlobalIsSet(SwarmBootnodeModeFlag.Name) {
Expand Down

0 comments on commit 4687391

Please sign in to comment.