mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
cmd/strelaypoolsrv: Fix vet warnings about type inference
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3393
This commit is contained in:
parent
fbbd510088
commit
518f446d31
@ -61,14 +61,14 @@ 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
|
||||||
@ -77,18 +77,18 @@ var (
|
|||||||
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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user