lib/connections: Allow on the fly changes to rate limits (fixes #3846)

Also replaces github.com/juju/ratelimit with golang.org/x/time/rate as
the latter supports changing the rate on the fly.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3862
This commit is contained in:
Jakob Borg
2017-01-02 11:29:20 +00:00
committed by Audrius Butkevicius
parent 8c34a76f7a
commit ec62888539
19 changed files with 662 additions and 1156 deletions

16
vendor/manifest vendored
View File

@@ -181,13 +181,6 @@
"revision": "3e333950771011fed13be63e62b9f473c5e0d9bf",
"branch": "master"
},
{
"importpath": "github.com/juju/ratelimit",
"repository": "https://github.com/juju/ratelimit",
"vcs": "",
"revision": "77ed1c8a01217656d2080ad51981f6e99adaa177",
"branch": "master"
},
{
"importpath": "github.com/kardianos/osext",
"repository": "https://github.com/kardianos/osext",
@@ -408,6 +401,15 @@
"revision": "a71fd10341b064c10f4a81ceac72bcf70f26ea34",
"branch": "master",
"path": "/unicode/norm"
},
{
"importpath": "golang.org/x/time/rate",
"repository": "https://go.googlesource.com/time",
"vcs": "git",
"revision": "f51c12702a4d776e4c1fa9b0fabab841babae631",
"branch": "master",
"path": "/rate",
"notests": true
}
]
}