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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mud2monarch
Copy link

@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
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
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.

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.

1 participant