Skip to content

Commit

Permalink
Report accurate value for max_concurrent_requests (#201)
Browse files Browse the repository at this point in the history
* Ensure output value for max_concurrent_requests is reported accurately

Fixes issue #200

* small correction. removing map since it's already an Option<u64>

* Added test for PR.

* Update source.rs

* Update Cargo.toml

* Update Cargo.lock

---------

Co-authored-by: Zach Wong <[email protected]>
Co-authored-by: sslivkoff <[email protected]>
  • Loading branch information
3 people authored Nov 24, 2024
1 parent d500f11 commit d3430c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli/src/parse/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub(crate) async fn parse_source(args: &Args) -> Result<Source, ParseError> {
rpc_url,
provider,
labels: SourceLabels {
max_concurrent_requests: args.requests_per_second.map(|x| x as u64),
max_concurrent_requests: args.max_concurrent_requests,
max_requests_per_second: args.requests_per_second.map(|x| x as u64),
max_retries: Some(args.max_retries),
initial_backoff: Some(args.initial_backoff),
Expand Down

0 comments on commit d3430c6

Please sign in to comment.