bugproof / baselinker-rs

BaseLinker.com API client for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add request limit handling

bugproof opened this issue · comments

The default limit is 100 requests per minute. Honestly I have no idea how to implement this in a nice way... Should send method return a custom BaseLinkerError when the limit is exceeded or just wait/delay?

The limit should be configurable

Related issues:

seanmonstar/reqwest#491
seanmonstar/reqwest#1420

Implemented in ac7ed99 using tower for now. Possibly look at other rate limiting crates like governor.