Skip to content

Commit c6a07a3

Browse files
committed
remove some sout
1 parent 6ebd3b2 commit c6a07a3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

07rpc/rpc01/rpcfx-core/src/main/java/io/kimmking/rpcfx/client/Rpcfx.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ public <T> RpcfxInvocationHandler(Class<T> serviceClass, List<String> invokers,
129129
public Object invoke(Object proxy, Method method, Object[] params) throws Throwable {
130130

131131
List<String> urls = router.route(invokers);
132-
System.out.println("router.route => ");
133-
urls.forEach(System.out::println);
132+
// System.out.println("router.route => ");
133+
// urls.forEach(System.out::println);
134134
String url = loadBalance.select(urls); // router, loadbalance
135-
System.out.println("loadBalance.select => ");
136-
System.out.println("final => " + url);
135+
// System.out.println("loadBalance.select => ");
136+
// System.out.println("final => " + url);
137137

138138
if (url == null) {
139139
throw new RuntimeException("No available providers from registry center.");
@@ -170,7 +170,7 @@ public Object invoke(Object proxy, Method method, Object[] params) throws Throwa
170170

171171
private RpcfxResponse post(RpcfxRequest req, String url) throws IOException {
172172
String reqJson = JSON.toJSONString(req);
173-
System.out.println("req json: "+reqJson);
173+
// System.out.println("req json: "+reqJson);
174174

175175
// 1.可以复用client
176176
// 2.尝试使用httpclient或者netty client
@@ -180,7 +180,7 @@ private RpcfxResponse post(RpcfxRequest req, String url) throws IOException {
180180
.post(RequestBody.create(JSONTYPE, reqJson))
181181
.build();
182182
String respJson = client.newCall(request).execute().body().string();
183-
System.out.println("resp json: "+respJson);
183+
// System.out.println("resp json: "+respJson);
184184
return JSON.parseObject(respJson, RpcfxResponse.class);
185185
}
186186
}

07rpc/rpc01/rpcfx-demo-consumer/src/main/java/io/kimmking/rpcfx/demo/consumer/RpcfxClientApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private static class CuicuiFilter implements Filter {
8484
@Override
8585
public boolean filter(RpcfxRequest request) {
8686
//log.info("filter {} -> {}", this.getClass().getName(), request.toString());
87-
System.out.printf("filter %s -> %s%n", this.getClass().getName(), request.toString());
87+
//System.out.printf("filter %s -> %s%n", this.getClass().getName(), request.toString());
8888
return true;
8989
}
9090
}

0 commit comments

Comments
 (0)