diff options
author | thomasmodeneis <thomas.modeneis@gmail.com> | 2018-04-18 06:53:50 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-04-18 06:53:50 +0800 |
commit | ba1030b6b84f810c04a82221a1b1c0a3dbf499a8 (patch) | |
tree | 9c3450535acddfec3b1987e0a2e04fa9ca303e38 /swarm/storage | |
parent | 7605e63cb9dda7fc5bb619abf1eb1f74ac3f6cc1 (diff) | |
download | dexon-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar dexon-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.gz dexon-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.bz2 dexon-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.lz dexon-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.xz dexon-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.zst dexon-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.zip |
build: enable goimports and varcheck linters (#16446)
Diffstat (limited to 'swarm/storage')
-rw-r--r-- | swarm/storage/dbstore.go | 1 | ||||
-rw-r--r-- | swarm/storage/netstore.go | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/swarm/storage/dbstore.go b/swarm/storage/dbstore.go index 421bb061d..1ff42a0c0 100644 --- a/swarm/storage/dbstore.go +++ b/swarm/storage/dbstore.go @@ -54,7 +54,6 @@ const ( // key prefixes for leveldb storage kpIndex = 0 - kpData = 1 ) var ( diff --git a/swarm/storage/netstore.go b/swarm/storage/netstore.go index 5d4f17deb..0552b84ef 100644 --- a/swarm/storage/netstore.go +++ b/swarm/storage/netstore.go @@ -83,11 +83,6 @@ func NewNetStore(hash SwarmHasher, lstore *LocalStore, cloud CloudStore, params } } -const ( - // maximum number of peers that a retrieved message is delivered to - requesterCount = 3 -) - var ( // timeout interval before retrieval is timed out searchTimeout = 3 * time.Second |