提交 a9f34219 编写于 作者: 小傅哥's avatar 小傅哥

feat: 模拟RPC请求

上级 12483ea7
...@@ -61,7 +61,7 @@ public class RpcServerSocket implements Runnable { ...@@ -61,7 +61,7 @@ public class RpcServerSocket implements Runnable {
Map<String, Object> response = new HashMap<>(); Map<String, Object> response = new HashMap<>();
response.put("data", invoke); response.put("data", invoke);
log.info("RPC 请求调用 clazz:{} methodName:{}, response:{}", clazz, methodName, JSON.toJSON(response)); log.info("RPC 请求调用 clazz:{} methodName:{}, response:{}", clazz.getName(), methodName, JSON.toJSON(response));
// 回写数据 // 回写数据
channelHandlerContext.channel().writeAndFlush(response); channelHandlerContext.channel().writeAndFlush(response);
} }
...@@ -79,5 +79,4 @@ public class RpcServerSocket implements Runnable { ...@@ -79,5 +79,4 @@ public class RpcServerSocket implements Runnable {
} }
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册