Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 583 Bytes

README.md

File metadata and controls

7 lines (5 loc) · 583 Bytes

Weighted Rate Limiter

Some API's have usage limits where different endpoints or actions have different costs - this is often implemented as the caller having a certain amount of weight that they are allowed to use per a given time period. This crate allows you to implement a rate limiter that enforces these limits - more specifically by queueing up futures that will be executed when the weight becomes available.

See docs.rs for usage.

To Note

This crate is very new, and has not been thoroughly tested.