fc-common: GitHub rate limit state extraction
Extract `X-RateLimit-*` headers from responses and calculate an adaptive delay. Minimum delay is 1 seconds to prevent division by 0. Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ib35b0d0e720098e2c68ced88a8821c7b6a6a6964
This commit is contained in:
parent
f5c16aef83
commit
4050de5b4e
3 changed files with 84 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
//! Integration tests for database and configuration
|
||||
|
||||
mod notifications_tests;
|
||||
|
||||
use fc_common::{
|
||||
Database,
|
||||
config::{Config, DatabaseConfig},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue