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

Honor sub count limits for raw/dump #495

Merged
merged 1 commit into from
Jun 10, 2022
Merged

Honor sub count limits for raw/dump #495

merged 1 commit into from
Jun 10, 2022

Conversation

philpennock
Copy link
Member

"Chris" on nats slack reported that nats sub $subject --count $N did not work with --raw; analysis of code exposed that this also does not work with --raw.

Adjust the control flow in the registered handler function to treat the pretty-case as another branch, before final clean-up; I rejected the "duplicate the limit check in two other places" approach as not scaling if more work needs to be done on each branch.

"Chris" on nats slack reported that `nats sub $subject --count $N` did not work
with `--raw`; analysis of code exposed that this also does not work with
`--raw`.

Adjust the control flow in the registered handler function to treat the
pretty-case as another branch, before final clean-up; I rejected the "duplicate
the limit check in two other places" approach as not scaling if more work needs
to be done on each branch.
@ripienaar ripienaar merged commit a02afd5 into main Jun 10, 2022
@ripienaar ripienaar deleted the pdp/repair-sub-count branch June 10, 2022 09:10
@ripienaar
Copy link
Collaborator

Thank you :)

@philpennock
Copy link
Member Author

How did I write --raw twice there? For the historical record, I meant: it also does not work with --dump

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