cmd/strelaypoolsrv: Fix vet warnings about type inference

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3393
This commit is contained in:
Jakob Borg 2016-07-08 06:40:46 +00:00
parent fbbd510088
commit 518f446d31
1 changed files with 16 additions and 16 deletions

View File

@ -61,34 +61,34 @@ type result struct {
var ( var (
testCert tls.Certificate testCert tls.Certificate
listen string = ":80" listen = ":80"
dir string = "" dir string
evictionTime time.Duration = time.Hour evictionTime = time.Hour
debug bool = false debug bool
getLRUSize int = 10 << 10 getLRUSize = 10 << 10
getLimitBurst int64 = 10 getLimitBurst int64 = 10
getLimitAvg = 1 getLimitAvg = 1
postLRUSize int = 1 << 10 postLRUSize = 1 << 10
postLimitBurst int64 = 2 postLimitBurst int64 = 2
postLimitAvg = 1 postLimitAvg = 1
getLimit time.Duration getLimit time.Duration
postLimit time.Duration postLimit time.Duration
permRelaysFile string permRelaysFile string
ipHeader string ipHeader string
geoipPath string geoipPath string
getMut sync.RWMutex = sync.NewRWMutex() getMut = sync.NewRWMutex()
getLRUCache *lru.Cache getLRUCache *lru.Cache
postMut sync.RWMutex = sync.NewRWMutex() postMut = sync.NewRWMutex()
postLRUCache *lru.Cache postLRUCache *lru.Cache
requests = make(chan request, 10) requests = make(chan request, 10)
mut sync.RWMutex = sync.NewRWMutex() mut = sync.NewRWMutex()
knownRelays []relay = make([]relay, 0) knownRelays = make([]relay, 0)
permanentRelays []relay = make([]relay, 0) permanentRelays = make([]relay, 0)
evictionTimers map[string]*time.Timer = make(map[string]*time.Timer) evictionTimers = make(map[string]*time.Timer)
) )
func main() { func main() {