优化代码

This commit is contained in:
houjinchuan
2024-03-04 15:43:18 +08:00
parent 644ca7f35c
commit 7795ebb318
10 changed files with 5 additions and 13 deletions

View File

@@ -178,7 +178,7 @@ public class HosSink extends RichSinkFunction<FileChunk> {
httpPut.setHeader(HOS_META_PREFIX + StrUtil.toSymbolCase(meta, CharUtil.DASHED), metaMap.get(meta) + "");
}
}
httpPut.setEntity(new ByteArrayEntity(fileChunk.getChunk()));
httpPut.setEntity(new ByteArrayEntity(data));
executeRequest(httpPut);
}
}
@@ -242,5 +242,4 @@ public class HosSink extends RichSinkFunction<FileChunk> {
}
}
}
}