mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
cmd/swarm: Delint conversion
This commit is contained in:
parent
73ed8efc82
commit
3ef02ccdbd
1 changed files with 3 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 {
|
||||
currentConfig.StoreParams.DbCapacity = uint64(storeCapacity)
|
||||
currentConfig.StoreParams.DbCapacity = storeCapacity
|
||||
}
|
||||
|
||||
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 {
|
||||
currentConfig.StoreParams.Radius = int(storeRadius)
|
||||
currentConfig.StoreParams.Radius = storeRadius
|
||||
}
|
||||
|
||||
return currentConfig
|
||||
|
|
|
|||
Loading…
Reference in a new issue