-
Notifications
You must be signed in to change notification settings - Fork 99
ref(cache): Move buffering of pending envelope to ProjectCache #1879
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
Merged
Merged
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
a6a4682
ref(cache): Move buffering of pending envelope to ProjectCache
olksdr 5fbe8a9
Fix lint
olksdr 5a9c421
Merge branch 'master' into feat/project-cache-queue
olksdr 1003234
Add CHANGELOG entry
olksdr d649845
Reuse check_envelope fn
olksdr 5ac4c61
Introduce the index
olksdr c6554de
Small cleanup and docs
olksdr 716cf9a
Merge remote-tracking branch 'origin/master' into feat/project-cache-…
olksdr 00c3c1e
Simplify taking keys out of the index
olksdr 5296068
Use hash set for index
olksdr ceb590d
Refactor processing part into separate func
olksdr 4a1c670
Dispose envelopes linked to the expired projects
olksdr d4f1f8e
Merge branch 'master' into feat/project-cache-queue
olksdr 99d4df0
Merge branch 'master' into feat/project-cache-queue
olksdr 435ac7b
Switch to BTreeSet and address some review comments
olksdr cb2a1c5
ref: Simplify
jan-auer da7ebfb
ref: Changes from review
jan-auer 67c94f3
Log only if there is anything to log
olksdr a143882
Change the condition to filter out invalid states
olksdr 40c2727
Pick envelopes for the incoming root project
olksdr 561dcf0
Merge branch 'master' into feat/project-cache-queue
olksdr 03917a5
simplified predicated, use projects map
olksdr 2d2edfa
Fix dequeue and use the proper project key for processing.
olksdr 0f9b507
Update comments
olksdr 46c14b5
Merge branch 'master' into feat/project-cache-queue
olksdr bcac670
review comments
olksdr 381c893
review comments
olksdr 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 hidden or 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
This file contains hidden or 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.
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.
Why is this only targeting processing relays?
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.
We have the following in the code:
relay/relay-server/src/actors/project.rs
Lines 798 to 807 in 381c893
which already guards some of the code behind the feature flag, so the import must be there as well, otherwise the compiler will complain.