-
Notifications
You must be signed in to change notification settings - Fork 77
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
CollectionDataFeed: Minor changes #1351
Conversation
7eb31fc
to
f85eddb
Compare
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!
collection | ||
.get_mut(data_id) | ||
.map(|value| *value = Self::get(data_id)) | ||
if let Some(value) = collection.get_mut(data_id) { |
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.
I'm wondering if It might read a little cleaner flattened with match, though feel free to disregard if not :)
match (collection.get_mut(data_id), Self::get(data_id)) {
(Some(value), Ok(new_value)) => *value = new_value,
_ => ()
}
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.
I really like your suggestion here @thea-leake!! I had the auto-merge enabled, but I'll update this in the next PRs. Thanks! 🙌🏻
Description
Minor changes over
collection-data-feed
to prepare it for the OracleValuation feature.Changes and Descriptions
Result
instead of Option.MockDataCollection
with user callback.