chengyouling commented on code in PR #5014:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/5014#discussion_r2522580960


##########
clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRawClient.java:
##########
@@ -96,6 +104,16 @@ private HttpResponse doHttpRequest(String url, boolean 
absoluteUrl, Map<String,
     }
   }
 
+  private void recordAndSendUnAuthorizedEvent(HttpResponse response, String 
address) {
+    if (this.eventBus != null && response.getStatusCode() == 
HttpStatus.SC_UNAUTHORIZED) {

Review Comment:
   发布UnAuthorizedOperationEvent事件主要是为了触发token重新刷新,如果是超期了,也可以提前刷新token,更友好



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to