mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
reformat
This commit is contained in:
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…
x
Reference in New Issue
Block a user