build: enable goimports and varcheck linters (#16446)

This commit is contained in:
thomasmodeneis
2018-04-18 00:53:50 +02:00
committed by Felix Lange
parent 7605e63cb9
commit ba1030b6b8
28 changed files with 54 additions and 98 deletions

View File

@ -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