Merge pull request #88 from SkyeBeFreeman/main

feat:update version of SCT to 1.3.0-Hoxton.SR9-SNAPSHOT
pull/89/head
Haotian Zhang 3 years ago committed by GitHub
commit 9796093590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -85,7 +85,7 @@
<properties>
<!-- Project revision -->
<revision>1.2.0-Hoxton.SR9</revision>
<revision>1.3.0-Hoxton.SR9-SNAPSHOT</revision>
<!-- Spring Cloud -->
<spring.cloud.version>Hoxton.SR9</spring.cloud.version>

@ -66,11 +66,13 @@ public class MetadataFirstScgFilter implements GlobalFilter, Ordered {
MetadataConstant.SystemMetadataKey.PEER_NAMESPACE,
MetadataContext.LOCAL_NAMESPACE);
if (route != null) {
metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.PEER_SERVICE,
metadataContext.putSystemMetadata(
MetadataConstant.SystemMetadataKey.PEER_SERVICE,
route.getUri().getAuthority());
}
else {
metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.PEER_SERVICE,
metadataContext.putSystemMetadata(
MetadataConstant.SystemMetadataKey.PEER_SERVICE,
exchange.getRequest().getURI().getAuthority());
}
metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.PEER_PATH,
@ -81,4 +83,5 @@ public class MetadataFirstScgFilter implements GlobalFilter, Ordered {
return chain.filter(exchange);
}
}

@ -70,7 +70,7 @@
</developers>
<properties>
<revision>1.2.0-Hoxton.SR9</revision>
<revision>1.3.0-Hoxton.SR9-SNAPSHOT</revision>
<polaris.version>1.3.1</polaris.version>
<powermock.version>2.0.0</powermock.version>

Loading…
Cancel
Save