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

manager: continue when skipping internal msgs #172

Merged
merged 1 commit into from
May 30, 2023

Conversation

ccstolley
Copy link
Contributor

I noticed that sometimes receive_messages() will terminate instead of blocking for new messages. When internal messages aren't desired, the closure returns None. I believe this causes futures::stream::unfold() to return Poll::Ready(None) which will close the stream. I don't think that's what we want.

I suggest we just continue looping when skipping internal messages instead of returning None.

Returning None will terminate the stream, so when skipping internal
messages, just continue looping instead.
@gferon
Copy link
Collaborator

gferon commented May 30, 2023

Thanks a lot for this!

@gferon gferon enabled auto-merge (squash) May 30, 2023 22:19
@gferon gferon merged commit bc27cb9 into whisperfish:main May 30, 2023
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