-
Notifications
You must be signed in to change notification settings - Fork 115
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
Match replies to request in nats sub
#542
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea I like it but probably it will be for the next CLI release so I will land a few PRs today and then we rebase and review this one thoroughly for the next release.
The print logic has been a area of many bugs so I want to be quite careful when toushing this
Sorry for the delay here I was out for a few weeks
02be17a
to
834a94d
Compare
Hi, thank you for the PR 😊 Sorry about all the name conventions, I haven't written Go in some years. Let me know when you're reviewing this again, or if you need me to rebase again 👍🏼 |
nice, thanks for the update, I will test it during the week carefully and let you know! nice idea thank you |
When `--match-replies` flag is given, requests are matched with their respective replies, and printed/dumped together (respecting `--dump`/`--raw` flags). This is implemented by listening to all subjects under `_INBOX`, and matching them with requests using a map. Co-authored-by: Margarita Tronik <mtronik1@gmail.com>
834a94d
to
3451ca0
Compare
I forgot to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, just a small question about behavior otherwise i think its mergable
Thanks for the contribution! |
This adds a
--match-replies
flag tonats sub
which matches replies to any request sent to the subscribed subject.The feature is implemented using an additional subscription on
_INBOX.>
subject, and a map matching reply subjects to requests.