Skip to content

Conversation

@camshaft
Copy link
Contributor

@camshaft camshaft commented Jul 11, 2023

Description of changes:

When using the qns application for testing, it can be useful to specify a limit for the total number of concurrent connections. This change allows for just that.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review July 12, 2023 17:46
Comment on lines 39 to 41
// `try_join_all` should be returning an Err if any stream fails, but it
// seems to just include the Err in the Vec of results. This will force
// any Error to bubble up so it can be printed in the output.
Copy link
Contributor

Choose a reason for hiding this comment

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

comment needs updating

#[structopt(long)]
connections: Option<usize>,

/// Defines the number of concurrent connections to open at any given time
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment on the connections option above to make it more clear how it differs from concurrency?

@camshaft camshaft force-pushed the camshaft/qns-concurrency branch from e546484 to a1f7820 Compare July 14, 2023 16:09
@camshaft camshaft requested a review from WesleyRosenblum July 14, 2023 16:09
@camshaft camshaft enabled auto-merge (squash) July 14, 2023 16:34
@camshaft camshaft merged commit af745ea into main Jul 14, 2023
@camshaft camshaft deleted the camshaft/qns-concurrency branch July 14, 2023 16:39
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