Skip to content

fix(shadows): use cloud-computed delta in sync_shadow#130

Open
KennethKnudsen97 wants to merge 1 commit into
masterfrom
fix/sync-shadow-delta-only
Open

fix(shadows): use cloud-computed delta in sync_shadow#130
KennethKnudsen97 wants to merge 1 commit into
masterfrom
fix/sync-shadow-delta-only

Conversation

@KennethKnudsen97
Copy link
Copy Markdown
Contributor

sync_shadow previously re-applied the full desired blob on every boot, firing apply_delta_and_ack (and any caller side-effects gated on a Some delta) even when desired matched reported. Switch to AWS's delta field so callers can rely on None to skip work when nothing actually changed.

The original reason for preferring desired — narrow deltas missing parent variant tags — is now handled by the bare-string variant fallback in #129.

Previously sync_shadow re-applied the full `desired` blob on every boot,
firing `apply_delta_and_ack` (and any side-effects gated on a Some delta)
even when desired matched reported. Use AWS's `delta` field so callers
can rely on `None` to skip work when nothing actually changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants