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

fix(rpc module): subscription close bug #1011

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Conversation

niklasad1
Copy link
Member

@niklasad1 niklasad1 commented Feb 10, 2023

Follow-up on #962

Before futures channels were used and is_closed can't be implemented and I introduced a bug by cloning the sender which forces the subscription never to return None as it is the same channel which is used in the subscription.

Thus, just remove is_closed and one have to use async fn next() to determine whether a subscription is closed.

@niklasad1 niklasad1 requested a review from a team as a code owner February 10, 2023 16:31
@niklasad1 niklasad1 merged commit b98f443 into master Feb 15, 2023
@niklasad1 niklasad1 deleted the na-rpc-module-sub-fix branch February 15, 2023 16:32
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.

3 participants