添加注释

2.7.0
648540858 2024-04-18 16:30:21 +08:00
parent 55a240bb45
commit 6025eb29fd
3 changed files with 4 additions and 2 deletions

View File

@ -79,6 +79,7 @@ public class RedisRpcConfig implements MessageListener {
if (userSetting.getServerId().equals(response.getToId())) { if (userSetting.getServerId().equals(response.getToId())) {
return; return;
} }
logger.info("[redis-rpc] << {}", response);
response(response); response(response);
} }
@ -87,6 +88,7 @@ public class RedisRpcConfig implements MessageListener {
if (userSetting.getServerId().equals(request.getFromId())) { if (userSetting.getServerId().equals(request.getFromId())) {
return; return;
} }
logger.info("[redis-rpc] >> {}", request);
Method method = getMethod(request.getUri()); Method method = getMethod(request.getUri());
// 没有携带目标ID的可以理解为哪个wvp有结果就哪个回复携带目标ID但是如果是不存在的uri则直接回复404 // 没有携带目标ID的可以理解为哪个wvp有结果就哪个回复携带目标ID但是如果是不存在的uri则直接回复404
if (userSetting.getServerId().equals(request.getToId())) { if (userSetting.getServerId().equals(request.getToId())) {

View File

@ -76,7 +76,7 @@ public class RedisRpcRequest {
return "RedisRpcRequest{" + return "RedisRpcRequest{" +
"fromId='" + fromId + '\'' + "fromId='" + fromId + '\'' +
", toId='" + toId + '\'' + ", toId='" + toId + '\'' +
", sn='" + sn + '\'' + ", sn=" + sn +
", uri='" + uri + '\'' + ", uri='" + uri + '\'' +
", param=" + param + ", param=" + param +
'}'; '}';

View File

@ -2,4 +2,4 @@ spring:
application: application:
name: wvp name: wvp
profiles: profiles:
active: local2 active: local