From 4283748b71e6c8a5b61d47fe5bb0904a96b8ccd7 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 18 May 2017 12:24:42 +0900 Subject: [PATCH] removed test code --- src/main/java/com/loafle/overflow/Server.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/main/java/com/loafle/overflow/Server.java b/src/main/java/com/loafle/overflow/Server.java index 05a70da..a65313e 100644 --- a/src/main/java/com/loafle/overflow/Server.java +++ b/src/main/java/com/loafle/overflow/Server.java @@ -117,7 +117,7 @@ public class Server { try { Object obj = crawler.get(req.getId()); - writefff((byte[])obj); + Output reply = Output.newBuilder() .setData(ByteString.copyFrom((byte[])obj)) @@ -132,22 +132,6 @@ public class Server { } } - public void writefff(byte[] aaa) { - try { - FileOutputStream fos = new FileOutputStream("/home/cm2/1212.txt"); - fos.write(aaa); - fos.close(); - - BufferedWriter out = new BufferedWriter(new FileWriter("/home/cm2/1212str.txt")); - out.write(new String(aaa,0,aaa.length)); - - out.close(); - - } catch (IOException e) { - e.printStackTrace(); - } - - } } static class ConfigImpl extends ConfigGrpc.ConfigImplBase {