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

Report accurate value for max_concurrent_requests #201

Merged
merged 6 commits into from
Nov 24, 2024

Conversation

mud2monarch
Copy link
Contributor

@mud2monarch mud2monarch commented Nov 17, 2024

Fixes issue #200

Motivation

Fixing issue #200

Solution

parse_source() currently sets max_concurrent_requests to args.requests_per_second. This leads to an inaccurate reporting of the actual value of max_concurrent_requests, set in lines 50 and 57.

PR Checklist

  • Added Tests
  • Added Documentation --> no change to docs as this fixes a bug
  • Breaking changes --> don't think so, code now working as intended

@mud2monarch
Copy link
Contributor Author

mud2monarch commented Nov 17, 2024

Sorry if this is a bad PR. This is my first time contributing to a project. If you'd like me to add tests please lmk.

use super::*;
use thousands::Separable;

async fn setup_source(max_concurrent_requests: u64) -> Source {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is taken from parse::timestamps except I set the max_concurrent_requests to the input.

@sslivkoff sslivkoff merged commit d3430c6 into paradigmxyz:main Nov 24, 2024
3 checks passed
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