aboutsummaryrefslogtreecommitdiffstats
path: root/swarm
diff options
context:
space:
mode:
authorthomasmodeneis <thomas.modeneis@gmail.com>2018-04-18 06:53:50 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-18 06:53:50 +0800
commitba1030b6b84f810c04a82221a1b1c0a3dbf499a8 (patch)
tree9c3450535acddfec3b1987e0a2e04fa9ca303e38 /swarm
parent7605e63cb9dda7fc5bb619abf1eb1f74ac3f6cc1 (diff)
downloadgo-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.gz
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.bz2
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.lz
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.xz
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.tar.zst
go-tangerine-ba1030b6b84f810c04a82221a1b1c0a3dbf499a8.zip
build: enable goimports and varcheck linters (#16446)
Diffstat (limited to 'swarm')
-rw-r--r--swarm/fuse/fuse_dir.go7
-rw-r--r--swarm/fuse/swarmfs.go3
-rw-r--r--swarm/storage/dbstore.go1
-rw-r--r--swarm/storage/netstore.go5
4 files changed, 6 insertions, 10 deletions
diff --git a/swarm/fuse/fuse_dir.go b/swarm/fuse/fuse_dir.go
index 91b236ae8..a7701985e 100644
--- a/swarm/fuse/fuse_dir.go
+++ b/swarm/fuse/fuse_dir.go
@@ -19,12 +19,13 @@
package fuse
import (
- "bazil.org/fuse"
- "bazil.org/fuse/fs"
- "golang.org/x/net/context"
"os"
"path/filepath"
"sync"
+
+ "bazil.org/fuse"
+ "bazil.org/fuse/fs"
+ "golang.org/x/net/context"
)
var (
diff --git a/swarm/fuse/swarmfs.go b/swarm/fuse/swarmfs.go
index 2493bdab1..e56d0ad4e 100644
--- a/swarm/fuse/swarmfs.go
+++ b/swarm/fuse/swarmfs.go
@@ -17,9 +17,10 @@
package fuse
import (
- "github.com/ethereum/go-ethereum/swarm/api"
"sync"
"time"
+
+ "github.com/ethereum/go-ethereum/swarm/api"
)
const (
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