Improve upload rate limit burst size panic message

Should help with #202.
This commit is contained in:
Matt Joiner 2017-11-04 16:58:38 +11:00
parent 53ee52e26a
commit 426c6fec65
1 changed files with 1 additions and 1 deletions

View File

@ -1088,7 +1088,7 @@ another:
for r := range c.PeerRequests {
res := cl.uploadLimit.ReserveN(time.Now(), int(r.Length))
if !res.OK() {
panic(res)
panic(fmt.Sprintf("upload rate limiter burst size < %d", r.Length))
}
delay := res.Delay()
if delay > 0 {