Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove examples for multi-address client that similar to single-address #2129

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

Some HTTP examples that use HttpClients.forMultiAddressUrl() are
identical to the other example that uses
HttpClients.forSingleAddress(...). It doesn't provide much value for
users because the top level client API is the same for both client
factories. It's enough to demonstrate multi-address use-case in
hello-world example only.

Modifications:

  • Remove classes that target forMultiAddressUrl() from json, protobuf,
    and retry examples;
  • Remove link to RetryUrlClient from docs;

Result:

Less classes in examples to maintain.

Motivation:

Some HTTP examples that use `HttpClients.forMultiAddressUrl()` are
identical to the other example that uses
`HttpClients.forSingleAddress(...)`. It doesn't provide much value for
users because the top level client API is the same for both client
factories. It's enough to demonstrate multi-address use-case in
hello-world example only.

Modifications:

- Remove classes that target `forMultiAddressUrl()` from json, protobuf,
and retry examples;
- Remove link to `RetryUrlClient` from docs;

Result:

Less classes in examples to maintain.
@bondolo
Copy link
Contributor

bondolo commented Mar 7, 2022

I have no objection to these specific changes but would like to see at least one example of using an initializer, even if we have to do something contrived. Without an example users are likely to miss how they are to apply configuration to instances.

Copy link
Contributor

@tkountis tkountis left a comment

Choose a reason for hiding this comment

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

ty

@idelpivnitskiy
Copy link
Member Author

@bondolo good point, I've created #2130

@idelpivnitskiy idelpivnitskiy merged commit 17c2bb4 into apple:main Mar 14, 2022
@idelpivnitskiy idelpivnitskiy deleted the remove branch March 14, 2022 22:17
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