diff options
author | Elad <theman@elad.im> | 2019-03-07 19:44:00 +0800 |
---|---|---|
committer | Anton Evangelatov <anton.evangelatov@gmail.com> | 2019-03-07 19:44:00 +0800 |
commit | 4687391213d9eb5c418a00d157b360c8d535b62f (patch) | |
tree | 135ed34375f3db2ae445df35151916f2a653f766 /cmd/swarm | |
parent | 316b63daf0e3a03930f98264d0d91adda696677b (diff) | |
download | go-tangerine-4687391213d9eb5c418a00d157b360c8d535b62f.tar go-tangerine-4687391213d9eb5c418a00d157b360c8d535b62f.tar.gz go-tangerine-4687391213d9eb5c418a00d157b360c8d535b62f.tar.bz2 go-tangerine-4687391213d9eb5c418a00d157b360c8d535b62f.tar.lz go-tangerine-4687391213d9eb5c418a00d157b360c8d535b62f.tar.xz go-tangerine-4687391213d9eb5c418a00d157b360c8d535b62f.tar.zst go-tangerine-4687391213d9eb5c418a00d157b360c8d535b62f.zip |
cmd/swarm: do not ignore cache size=0 (#19231)
Diffstat (limited to 'cmd/swarm')
-rw-r--r-- | cmd/swarm/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/swarm/config.go b/cmd/swarm/config.go index 0e1e5e39b..a941b3757 100644 --- a/cmd/swarm/config.go +++ b/cmd/swarm/config.go @@ -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) { |