-
Notifications
You must be signed in to change notification settings - Fork 23
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
Topic syncing and concurrency #335
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
5261631
Sync from last timestamp
richardhuaaa 8f815e7
Move syncing into helper
richardhuaaa 2a0d72a
Tidy visibility
richardhuaaa 4733cc2
Add storage test
richardhuaaa dd61d97
Move debug
richardhuaaa 8bfc39d
Update last synced timestamp while supporting concurrency
richardhuaaa 4b095f1
Refactor into helper method
richardhuaaa 45e1a5b
Update welcomes to use concurrency logic - test not passing yet
richardhuaaa a4090fd
Undo unrelated change
richardhuaaa 3831002
Debug statements, save group state
richardhuaaa 336be08
Fix more merge issues
richardhuaaa 8a2d408
More merge tweaks
richardhuaaa 90ac1b5
Wrap all borrows in a block - tests now pass
richardhuaaa 576da92
Address lints
richardhuaaa 3a4e59e
Add basic test case
richardhuaaa d6232db
Use timestamp + 1
richardhuaaa 3ceaf8e
Merge remote-tracking branch 'origin/main' into rich/topic-state
richardhuaaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Wrapping this in a block, because the borrow needs to be ended before it's borrowed again somewhere else (e.g. when OpenMLS writes to the key store), or else there will be a runtime error. Don't love this solution but it works
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.
After discussion, will implement a
WrappedConnection
struct in the next PR that can solve this problem