wujimin commented on a change in pull request #1283: [SCB-1407] Add new field 
when print provideCache log
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/1283#discussion_r309070365
 
 

 ##########
 File path: 
service-registry/src/main/java/org/apache/servicecomb/serviceregistry/task/MicroserviceInstanceRegisterTask.java
 ##########
 @@ -68,6 +68,10 @@ protected boolean doRegister() {
     
microserviceInstance.getHealthCheck().setTimes(serviceRegistryConfig.getResendHeartBeatTimes());
 
     String instanceId = 
srClient.registerMicroserviceInstance(microserviceInstance);
+    MicroserviceInstance temIns = 
srClient.findServiceInstance(microserviceInstance.getServiceId(),instanceId);
+    if(temIns!=null){
+      microserviceInstance.setTimestamp(temIns.getTimestamp());
 
 Review comment:
   i remember SC provide this property in very very very old version
   but better to confirm that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to