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

Updates to Stream All Messages #131

Merged
merged 7 commits into from
Nov 7, 2023
Merged

Updates to Stream All Messages #131

merged 7 commits into from
Nov 7, 2023

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Nov 3, 2023

This adds the new subscribe2 function to improve the streamAllMessages work.

Part of xmtp/xmtp-react-native#138

@nplasterer nplasterer self-assigned this Nov 3, 2023
Comment on lines +401 to +402
} catch (error: CancellationException) {
break
Copy link
Contributor Author

@nplasterer nplasterer Nov 7, 2023

Choose a reason for hiding this comment

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

Only break if it's a cancellation request for the stream? Or should we break for all exceptions? cc @neekolas

Copy link
Contributor

Choose a reason for hiding this comment

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

Retrying pretty aggressively makes sense. Maybe the only exception being if the request was rejected for a bad argument.

@nplasterer nplasterer marked this pull request as ready for review November 7, 2023 03:59
@nplasterer nplasterer requested a review from a team as a code owner November 7, 2023 03:59
@nplasterer nplasterer requested a review from neekolas November 7, 2023 16:13
@nplasterer nplasterer merged commit 6f1d807 into main Nov 7, 2023
5 of 6 checks passed
@nplasterer nplasterer deleted the np/subscribe2-update branch November 7, 2023 17:45
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