removed
test code
This commit is contained in:
parent
17bfa2d458
commit
4283748b71
|
@ -117,7 +117,7 @@ public class Server {
|
||||||
try {
|
try {
|
||||||
Object obj = crawler.get(req.getId());
|
Object obj = crawler.get(req.getId());
|
||||||
|
|
||||||
writefff((byte[])obj);
|
|
||||||
|
|
||||||
Output reply = Output.newBuilder()
|
Output reply = Output.newBuilder()
|
||||||
.setData(ByteString.copyFrom((byte[])obj))
|
.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 {
|
static class ConfigImpl extends ConfigGrpc.ConfigImplBase {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user