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

implement setting to limit throughput #40

Merged
merged 4 commits into from
Oct 18, 2021
Merged

implement setting to limit throughput #40

merged 4 commits into from
Oct 18, 2021

Conversation

rkusa
Copy link
Collaborator

@rkusa rkusa commented Oct 12, 2021

Add setting to limit throughput of calls that are executing inside of the mission scripting environment.

More details in inline comments. I don't really have a use-case where I'd see a difference between a throughput of 1 and 1000, so if you have one, it be worth testing it against this PR.

Refs #26

README.md Show resolved Hide resolved
lua/grpc.lua Show resolved Hide resolved
lua/grpc.lua Outdated Show resolved Hide resolved
@rkusa rkusa marked this pull request as ready for review October 12, 2021 13:15
@@ -171,47 +171,57 @@ async fn handle_event(state: &mut State, event: Event) -> Result<(), Error> {

/// Updates all units inside of the provided [State].
async fn update_units(state: &mut State) -> Result<(), Error> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hiding whitespace changes makes reviewing this part easier:

image

src/stream.rs Show resolved Hide resolved
Copy link
Contributor

@rurounijones rurounijones left a comment

Choose a reason for hiding this comment

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

Splendid stuff

@rkusa
Copy link
Collaborator Author

rkusa commented Oct 18, 2021

Rebased due to merge conflicts 🔀

@rkusa rkusa merged commit 97f34b0 into main Oct 18, 2021
@rkusa rkusa deleted the throughput branch October 18, 2021 15:36
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.

None yet

2 participants