-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
[Client Refactoring 6] Split download_certificates #365
Merged
Conversation
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
55d585a
to
2eef81a
Compare
233d959
to
b5563a3
Compare
oxade
approved these changes
Feb 4, 2022
huitseeker
approved these changes
Feb 5, 2022
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.
LGTM!
Comment on lines
+853
to
+865
( | ||
(object_id, next_sequence_number), | ||
self.certificates(&object_id) | ||
.flat_map(|cert| cert.order.input_objects()) | ||
.filter_map(|object_kind| { | ||
if object_kind.object_id() == object_id { | ||
Some(object_kind.version()) | ||
} else { | ||
None | ||
} | ||
}) | ||
.collect::<HashSet<_>>(), | ||
) |
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.
Nit: this seems marginally more readable
let versions = self.certificates(&object_id) ..;
((object_id, next_sequence_number), versions)
* [Client Refactoring 7] Lock/unlock order upfront * [Client Refactoring 8] Add AuthorityAggregator (#364) * [Client Refactoring] Add AuthorityAggregator * [Client Refactoring 9] Make download_objects_not_in_db fast again (#368) * [Client Refactoring 9] Make download_objects_not_in_db fast again * [Clienet Refactoring 10] Properly lock orde forr transfer_to_fastx_unsafe_unconfirmed (#369)
* [Client Refactoring 7] Lock/unlock order upfront * [Client Refactoring 8] Add AuthorityAggregator (#364) * [Client Refactoring] Add AuthorityAggregator * [Client Refactoring 9] Make download_objects_not_in_db fast again (#368) * [Client Refactoring 9] Make download_objects_not_in_db fast again * [Clienet Refactoring 10] Properly lock orde forr transfer_to_fastx_unsafe_unconfirmed (#369)
…enLabs/fastnft into split_download_certificates
db05ab4
to
b1e2410
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Split
download_certificates
into stateful and stateless parts, preparing for the final refactoring.