Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Release v0.8.0

Compare
Choose a tag to compare
@thrawn01 thrawn01 released this 09 Jan 02:21
· 436 commits to master since this release
61d160d

[0.8.0] - 2020-01-04

Added

  • Allow cache users to invalidate a ratelimit after a specific time
  • Changing limit and duration before expire should now work correctly
  • Added Behavior RESET_REMAINING to reset any hits recorded in the cache for the
    specified rate limit

Changes

  • TokenBucketItem is now provided when OnChange() is called instead of RateLimitResp
  • Fixed a bug in global behaviour where it would return an error if the async
    update had not occured before the a second request is made. Now it acts like it
    owns the rate limit until the owning node sends an update
  • Always include reset_time in leaky bucket responses
  • Fixed subtle bug during shutdown where PeerClient passed into goroutine could
    be out of scope/changed when routine runs
  • Behavior is now a flag, this should be a backward compatible change for
    anyone using GLOBAL or NO_BATCHING but will break anyone using
    DURATION_IS_GREGORIAN. Use HasBehavior() function to check for behavior
    flags.