Skip to content

Conversation

@SuperFluffy
Copy link
Contributor

Summary

Don't deny unknown config fields when parsing service config files.

Background

While having unused environment variables is not ideal, it does not and should not prevent starting up a service as long as its actually used config variables are set.

Changes

  • Remove #[serde(deny_unknown_fields)] attribute from all configuration structs.
  • Remove test enforcing that example only contains known fields.

@github-actions github-actions bot added conductor pertaining to the astria-conductor crate sequencer pertaining to the astria-sequencer crate sequencer-relayer pertaining to the astria-sequencer-relayer crate composer pertaining to composer labels Dec 18, 2023
@SuperFluffy SuperFluffy merged commit bb2561f into main Dec 19, 2023
@SuperFluffy SuperFluffy deleted the superfluffy/no-reject-unknown branch December 19, 2023 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

composer pertaining to composer conductor pertaining to the astria-conductor crate sequencer pertaining to the astria-sequencer crate sequencer-relayer pertaining to the astria-sequencer-relayer crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants