pull/1978/head
theonefx 4 years ago
parent 65fd0ebeca
commit e8cd8f4dab

@ -70,7 +70,8 @@ public class SidecarConsulAutoRegistration extends ConsulAutoRegistration {
// set health check, use alibaba sidecar self's port rather than polyglot app's
// port.
service.setPort(Integer.valueOf(context.getEnvironment().getProperty("server.port")));
service.setPort(
Integer.valueOf(context.getEnvironment().getProperty("server.port")));
setCheck(service, autoServiceRegistrationProperties, properties, context,
heartbeatProperties);
@ -84,7 +85,8 @@ public class SidecarConsulAutoRegistration extends ConsulAutoRegistration {
}
/**
* copyed from org.springframework.cloud.consul.serviceregistry.ConsulAutoRegistration#getMetadata
* copyed from
* org.springframework.cloud.consul.serviceregistry.ConsulAutoRegistration#getMetadata
*/
private static Map<String, String> getMetadata(ConsulDiscoveryProperties properties) {
LinkedHashMap<String, String> metadata = new LinkedHashMap<>();

Loading…
Cancel
Save