Skip to content

Plumb DNS load-balancing options through to core#433

Open
GregoryTravis wants to merge 4 commits into
mainfrom
gmt/dns-lb
Open

Plumb DNS load-balancing options through to core#433
GregoryTravis wants to merge 4 commits into
mainfrom
gmt/dns-lb

Conversation

@GregoryTravis
Copy link
Copy Markdown
Contributor

Defaults load balancing to off.

@GregoryTravis GregoryTravis requested a review from a team as a code owner May 13, 2026 21:38
Copy link
Copy Markdown
Member

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

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

Looks good, super minor comment about type narrowing vs ignoring the error

)
stored = client.connection.options.dns_load_balancing
assert_equal dns_opts, stored
assert_in_delta 5.0, stored.resolution_interval # steep:ignore
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If possible try to avoid ignoring type errors and instead explicitly narrow

Suggested change
assert_in_delta 5.0, stored.resolution_interval # steep:ignore
raise 'stored is nil' if stored.nil?
assert_in_delta 5.0, stored.resolution_interval # steep:ignore

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