mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-15 18:08:45 -07:00
Default values tweak
This commit is contained in:
parent
425f61cf34
commit
e1339628d9
@ -53,12 +53,14 @@ var (
|
||||
dir string = ""
|
||||
evictionTime time.Duration = time.Hour
|
||||
debug bool = false
|
||||
getLRUSize int = 10240
|
||||
getLimit time.Duration
|
||||
getLRUSize int = 10 << 10
|
||||
getLimitBurst int64 = 10
|
||||
postLRUSize int = 128
|
||||
postLimit time.Duration
|
||||
getLimitAvg = 1
|
||||
postLRUSize int = 1 << 10
|
||||
postLimitBurst int64 = 2
|
||||
postLimitAvg = 1
|
||||
getLimit time.Duration
|
||||
postLimit time.Duration
|
||||
|
||||
getMut sync.RWMutex = sync.NewRWMutex()
|
||||
getLRUCache *lru.Cache
|
||||
@ -75,8 +77,6 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
var getLimitAvg, postLimitAvg int
|
||||
|
||||
flag.StringVar(&listen, "listen", listen, "Listen address")
|
||||
flag.StringVar(&dir, "keys", dir, "Directory where http-cert.pem and http-key.pem is stored for TLS listening")
|
||||
flag.BoolVar(&debug, "debug", debug, "Enable debug output")
|
||||
|
Loading…
Reference in New Issue
Block a user