Commit 415cd1d8 by Spencer Gibb

Remove unneeded hardcoded initializers.

parent bd12fa47
......@@ -126,8 +126,6 @@ public class EurekaServerConfiguration extends WebMvcConfigurerAdapter {
@Bean
public PeerAwareInstanceRegistry peerAwareInstanceRegistry(ServerCodecs serverCodecs) {
eurekaClient.getApplications(); // force initialization
expectedNumberOfRenewsPerMin = 1;
defaultOpenForTrafficCount = 1;
return new InstanceRegistry(eurekaServerConfig, eurekaClientConfig, serverCodecs,
eurekaClient, expectedNumberOfRenewsPerMin, defaultOpenForTrafficCount);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment