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

Enable setting a EurekaClient instance in DiscoveryManager #1417

Merged
merged 2 commits into from
Aug 5, 2021

Conversation

asibross
Copy link
Contributor

@asibross asibross commented Aug 5, 2021

No description provided.

@@ -42,6 +42,7 @@
public class DiscoveryManager {
private static final Logger logger = LoggerFactory.getLogger(DiscoveryManager.class);
private DiscoveryClient discoveryClient;
private EurekaClient eurekaClient; // Might be a proxy to DiscoveryClient
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you call it something like clientOverride?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -58,6 +59,10 @@ public void setDiscoveryClient(DiscoveryClient discoveryClient) {
this.discoveryClient = discoveryClient;
}

public void setEurekaClient(EurekaClient eurekaClient) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here (setClientOverride).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@troshko111 troshko111 merged commit fc4e05a into master Aug 5, 2021
byzhuozh added a commit to byzhuozh/eureka that referenced this pull request Aug 12, 2021
Enable overriding the client in DiscoveryManager (Netflix#1417)
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.

None yet

2 participants