Improve upload rate limit burst size panic message
Should help with #202.
This commit is contained in:
parent
53ee52e26a
commit
426c6fec65
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue