Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom rate limit for aiohtpp #1518

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Add custom rate limit for aiohtpp #1518

wants to merge 4 commits into from

Conversation

moisses89
Copy link
Member

@moisses89 moisses89 commented Jan 10, 2025

Description

Add a custom client rate limit per second .
The RateLimiter class limit the connections per seconds for the provided rate.
Basically release a number of available connections given by rate each second.

@coveralls
Copy link

coveralls commented Jan 10, 2025

Pull Request Test Coverage Report for Build 13388974656

Details

  • 58 of 62 (93.55%) changed or added relevant lines in 3 files are covered.
  • 8 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.004%) to 93.946%

Changes Missing Coverage Covered Lines Changed/Added Lines %
safe_eth/eth/clients/rate_limiter.py 39 41 95.12%
safe_eth/eth/tests/clients/test_rate_limit.py 16 18 88.89%
Files with Coverage Reduction New Missed Lines %
safe_eth/eth/clients/etherscan_client.py 1 85.87%
safe_eth/eth/ethereum_client.py 1 85.21%
safe_eth/eth/tests/clients/test_etherscan_client.py 6 76.47%
Totals Coverage Status
Change from base Build 13372778676: -0.004%
Covered Lines: 9543
Relevant Lines: 10158

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants