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

rpc_module: SubscriptionSink::close -> SubscriptionSink::close_with_error #1013

Merged
merged 5 commits into from
Feb 15, 2023

Conversation

niklasad1
Copy link
Member

Close #1009

@niklasad1 niklasad1 requested a review from a team as a code owner February 13, 2023 17:25
Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

I'm not entirely sure we need close_with_result_notif (and as a nit I might have gone for close_with_error instead of close_with_error_notif) but all good :)

@niklasad1
Copy link
Member Author

niklasad1 commented Feb 15, 2023

I'm not entirely sure we need close_with_result_notif (and as a nit I might have gone for close_with_error instead of close_with_error_notif) but all good :)

The reason I did it like that is that close_with_error isn't necessarily an error it may be like the subscription could be defined like without no message when it's "completed" for some reason. However, I would happy to remove those annoying names if that's clear enough now

@niklasad1 niklasad1 changed the title rpc_module: split SubscriptionSink::close API rpc_module: SubscriptionSink::close -> SubscriptionSink::close_with_error Feb 15, 2023
@niklasad1 niklasad1 merged commit f114f8d into master Feb 15, 2023
@niklasad1 niklasad1 deleted the na-improve-subscription-close branch February 15, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants