提交 24f133d8 编写于 作者: wu-sheng's avatar wu-sheng

remove useless config, and make sure file writer is flush.

上级 fe1702da
......@@ -13,16 +13,6 @@ public class Config {
}
public static class DataConsumer {
public static int CHANNEL_SIZE = 10;
public static int BUFFER_SIZE = 1000;
public static int CONSUMER_SIZE = 5;
}
public static class DataFile {
public static String PATH = "/data/file";
......
......@@ -20,11 +20,13 @@ public class DataFileWriter {
}
IndexMetaCollection collections = new IndexMetaCollection();
try {
for (SpanData data : spanData) {
collections.add(dataFile.write(data));
}
}finally {
dataFile.flush();
}
return collections;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册