Skip to content
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

Merged
merged 9 commits into from
Jan 8, 2025
Merged

feat: delta processing implementation #188

merged 9 commits into from
Jan 8, 2025

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented Jan 7, 2025

Yggdrasil implementation how we initialize from delta or apply delta on existing data.

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

this expression creates a reference which is immediately dereferenced by the compiler
Copy link
Member

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 Fixed Show fixed Hide fixed
@sjaanus sjaanus marked this pull request as ready for review January 8, 2025 10:40
@sjaanus sjaanus changed the title feat: start work on delta processing feat: delta processing implementation Jan 8, 2025
@sjaanus sjaanus requested a review from sighphyre January 8, 2025 10:48
@@ -236,6 +245,24 @@ pub struct ResolvedToggle {
}

impl EngineState {
fn take_delta(&mut self, delta: &ClientFeaturesDelta) -> Option<Vec<EvalWarning>> {
Copy link
Member

@sighphyre sighphyre Jan 8, 2025

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

Copy link
Member

@sighphyre sighphyre left a 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

@sjaanus sjaanus merged commit 49b3abb into main Jan 8, 2025
2 checks passed
@sjaanus sjaanus deleted the task/addDelta branch January 8, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants