Skip to content

Commit

Permalink
Merge pull request #1218 from elandau/bugfix/discovery_client_constru…
Browse files Browse the repository at this point in the history
…ctor

Put back deprecated constructor
  • Loading branch information
elandau committed Jun 13, 2019
2 parents a6be573 + fa78dde commit 020df82
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,15 @@ public synchronized BackupRegistry get() {
}, randomizer);
}

/**
* @deprecated Use {@link #DiscoveryClient(ApplicationInfoManager, EurekaClientConfig, AbstractDiscoveryClientOptionalArgs, Provider<BackupRegistry>, EndpointRandomizer)}
*/
@Deprecated
DiscoveryClient(ApplicationInfoManager applicationInfoManager, EurekaClientConfig config, AbstractDiscoveryClientOptionalArgs args,
Provider<BackupRegistry> backupRegistryProvider) {
this(applicationInfoManager, config, args, backupRegistryProvider, ResolverUtils::randomize);
}

@Inject
DiscoveryClient(ApplicationInfoManager applicationInfoManager, EurekaClientConfig config, AbstractDiscoveryClientOptionalArgs args,
Provider<BackupRegistry> backupRegistryProvider, EndpointRandomizer endpointRandomizer) {
Expand Down

0 comments on commit 020df82

Please sign in to comment.