Skip to content

Commit

Permalink
fixup! WIP: new approach to declaring parameter changes in governance
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed May 4, 2024
1 parent 313a8eb commit ba340ed
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/core/component/governance/src/change.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,9 @@ pub fn apply_changes(
)
})?;

dbg!(&change);

let new_value = serde_json::Value::from_str(&change.value)
.context("could not decode new value as JSON value")?;

dbg!(&new_value);
dbg!(component.get(&change.key));

// We want to insert into the map to handle the case where the existing value
// is missing (e.g., it had a default value and so was not encoded)
component.insert(change.key.clone(), new_value);
Expand Down

0 comments on commit ba340ed

Please sign in to comment.