Skip to content

Commit

Permalink
Fix instance update failed (#9040)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ authored Oct 15, 2021
1 parent 54b27a9 commit 711a783
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public static void refreshMetadataAndInstance(ServiceInstance serviceInstance) {
instance = new DefaultServiceInstance((DefaultServiceInstance) instance);
calInstanceRevision(serviceDiscovery, instance);
customizeInstance(instance);
if (serviceInstance.getPort() > 0) {
if (instance.getPort() > 0) {
// update service instance revision
serviceDiscovery.update(instance);
}
Expand Down

0 comments on commit 711a783

Please sign in to comment.