Skip to content

feat: breaking rename external connectivity in config to enable egress to match api#156

Merged
emostov merged 1 commit into
mainfrom
zeke/rename-external-connect
Jun 3, 2026
Merged

feat: breaking rename external connectivity in config to enable egress to match api#156
emostov merged 1 commit into
mainfrom
zeke/rename-external-connect

Conversation

@emostov
Copy link
Copy Markdown
Contributor

@emostov emostov commented Jun 3, 2026

Rename config field name to better align with api field name

Comment thread tvc/src/config/app.rs
pub quorum_public_key: String,
#[serde(default)]
pub external_connectivity: Option<bool>,
pub enable_egress: Option<bool>,
Copy link
Copy Markdown
Contributor

@daniilrrr daniilrrr Jun 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think Option<bool> is redundant, should just be bool and the absence of a value when deserializing the JSON -> false not None. This is what I did in my earlier PR with dangerous_enable_debug_mode_deployments: bool below.

The question comes down to whether we there is a meaningful distinction between 3 values [None, Some(false), Some(true)] or 2 [false, true], and I think it's the latter case

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree

@emostov emostov merged commit 745ae5d into main Jun 3, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 3, 2026
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.

3 participants