Skip to content

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Aug 8, 2025

Motivation:

The examples use the '.ipv4(host:)' target to resolve. We renamed this to '.ipv4(address:)' which is more accurate. However, the examples should most likely use '.dns(host:)' with "localhost" rather than the IPv4 address automatically as '.dns(host:)' is more likely to be used in real world applications.

Modifications:

  • Change example clients from using '.ipv4(host: "127.0.0.1")' to
    '.dns(host: "localhost)'.

Result:

Fewer warnings, better examples

Motivation:

The examples use the '.ipv4(host:)' target to resolve. We renamed this
to '.ipv4(address:)' which is more accurate. However, the examples
should most likely use '.dns(host:)' with "localhost" rather than the
IPv4 address automatically as '.dns(host:)' is more likely to be used in
real world applications.

Modifications:

- Change example clients from using '.ipv4(host: "127.0.0.1")' to
  '.dns(host: "localhost)'.

Result:

Fewer warnings, better examples
@glbrntt glbrntt added the semver/none No version bump required. label Aug 8, 2025
@glbrntt glbrntt enabled auto-merge (squash) August 8, 2025 17:19
@glbrntt glbrntt requested a review from gjcairo August 8, 2025 17:19
@glbrntt glbrntt merged commit 15ee677 into grpc:main Aug 11, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants