Skip to content
Snippets Groups Projects
  • dullbananas's avatar
    a14657d1
    Refactor rate limiter and improve rate limit bucket cleanup (#3937) · a14657d1
    dullbananas authored
    
    * Update rate_limiter.rs
    
    * Update mod.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update mod.rs
    
    * Update scheduled_tasks.rs
    
    * Shrink `RateLimitBucket`
    
    * Update rate_limiter.rs
    
    * Update mod.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update mod.rs
    
    * Update rate_limiter.rs
    
    * fmt
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * rerun ci
    
    * Update rate_limiter.rs
    
    * Undo changes to  fields
    
    * Manually undo changes to RateLimitBucket fields
    
    * fmt
    
    * Bucket cleanup loop in rate_limit/mod.rs
    
    * Remove rate limit bucket cleanup from scheduled_tasks.rs
    
    * Remove ;
    
    * Remove UNINITIALIZED_TOKEN_AMOUNT
    
    * Update rate_limiter.rs
    
    * fmt
    
    * Update rate_limiter.rs
    
    * fmt
    
    * Update rate_limiter.rs
    
    * fmt
    
    * Update rate_limiter.rs
    
    * stuff
    
    * MapLevel trait
    
    * fix merge
    
    * Prevent negative numbers in buckets
    
    * Clean up MapLevel::check
    
    * MapLevel::remove_full_buckets
    
    * stuff
    
    * Use remove_full_buckets to avoid allocations
    
    * stuff
    
    * remove tx
    
    * Remove RateLimitConfig
    
    * Rename settings_updated_channel to rate_limit_cell
    
    * Remove global rate limit cell
    
    * impl Default for RateLimitCell
    
    * bucket_configs doc comment to explain EnumMap
    
    * improve test_rate_limiter
    
    * rename default to with_test_config
    
    ---------
    
    Co-authored-by: default avatarDessalines <dessalines@users.noreply.github.com>
    Co-authored-by: default avatarNutomic <me@nutomic.com>
    a14657d1
    History
    Refactor rate limiter and improve rate limit bucket cleanup (#3937)
    dullbananas authored
    
    * Update rate_limiter.rs
    
    * Update mod.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update mod.rs
    
    * Update scheduled_tasks.rs
    
    * Shrink `RateLimitBucket`
    
    * Update rate_limiter.rs
    
    * Update mod.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update mod.rs
    
    * Update rate_limiter.rs
    
    * fmt
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * Update rate_limiter.rs
    
    * rerun ci
    
    * Update rate_limiter.rs
    
    * Undo changes to  fields
    
    * Manually undo changes to RateLimitBucket fields
    
    * fmt
    
    * Bucket cleanup loop in rate_limit/mod.rs
    
    * Remove rate limit bucket cleanup from scheduled_tasks.rs
    
    * Remove ;
    
    * Remove UNINITIALIZED_TOKEN_AMOUNT
    
    * Update rate_limiter.rs
    
    * fmt
    
    * Update rate_limiter.rs
    
    * fmt
    
    * Update rate_limiter.rs
    
    * fmt
    
    * Update rate_limiter.rs
    
    * stuff
    
    * MapLevel trait
    
    * fix merge
    
    * Prevent negative numbers in buckets
    
    * Clean up MapLevel::check
    
    * MapLevel::remove_full_buckets
    
    * stuff
    
    * Use remove_full_buckets to avoid allocations
    
    * stuff
    
    * remove tx
    
    * Remove RateLimitConfig
    
    * Rename settings_updated_channel to rate_limit_cell
    
    * Remove global rate limit cell
    
    * impl Default for RateLimitCell
    
    * bucket_configs doc comment to explain EnumMap
    
    * improve test_rate_limiter
    
    * rename default to with_test_config
    
    ---------
    
    Co-authored-by: default avatarDessalines <dessalines@users.noreply.github.com>
    Co-authored-by: default avatarNutomic <me@nutomic.com>