-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: delta processing implementation #188
Conversation
warnings: &mut Vec<EvalWarning>, | ||
) -> CompiledToggle { | ||
let rule = upgrade(&toggle.strategies.clone().unwrap_or_default(), segment_map); | ||
let variant_rule = compile_variant_rule(&toggle, segment_map); |
Check warning
Code scanning / clippy
this expression creates a reference which is immediately dereferenced by the compiler Warning
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.
Fair, should sort this out before merging but not a biggie
unleash-yggdrasil/src/lib.rs
Outdated
@@ -236,6 +245,24 @@ pub struct ResolvedToggle { | |||
} | |||
|
|||
impl EngineState { | |||
fn take_delta(&mut self, delta: &ClientFeaturesDelta) -> Option<Vec<EvalWarning>> { |
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.
Want to make this public so it can be used? That should also sort out the Clippy lint
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.
Sure, looks good, I do think you'll need to make the method public to use though
Yggdrasil implementation how we initialize from delta or apply delta on existing data.