You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets say you have a bucket with rateopts: interval=1s rate=100
You read 50bytes.
Then within the same interval change the rate to say 10
the next call to bucket.insert will return a value of -40 which will cause a panic slice bounds of range in Reader.Read
Lets say you have a bucket with rateopts: interval=1s rate=100
You read 50bytes.
Then within the same interval change the rate to say 10
the next call to bucket.insert will return a value of -40 which will cause a panic slice bounds of range in Reader.Read
=> panic: runtime error: slice bounds out of range [:-40]
I have two solutions to this.
I can pull request either. Which would you prefer?
The text was updated successfully, but these errors were encountered: