Skip to content

Commit

Permalink
Merge pull request ethereum#202 from ethersphere/swarm-network-rewrit…
Browse files Browse the repository at this point in the history
…e-green

swarm/storage/mock: Omit test on <1.8
  • Loading branch information
nolash authored Jan 19, 2018
2 parents 2ae1375 + 3ef02cc commit c7ce92f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/swarm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions swarm/storage/mock/db/db_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.8
//
// Copyright 2018 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
Expand Down

0 comments on commit c7ce92f

Please sign in to comment.