Commit 80da8474 by 王祖波

log

parent ef622d52
......@@ -529,11 +529,12 @@ public class MaterialApiServiceImpl implements MaterialApiService {
if (StringUtils.isNotBlank(cache)) {
return com.gic.api.base.commons.ServiceResponse.success(cache);
}
logger.info("请求合成图片并上传企微");
Future<JSONResponse> future = null;
JSONResponse json = null;
try {
future = ImageCombined.EXECUTOR.submit(() -> {
TraceIdUtil.traceBegin(TraceIdUtil.EntranceType.QUARTZ);
TraceIdUtil.traceBegin(TraceIdUtil.EntranceType.THREAD_POOL);
logger.info("线程池合成图片");
JSONResponse jr = materialService.getMaterialIdByCombined(wxEnterpriseId, combinedQDTO);
TraceIdUtil.traceEnd();
......
......@@ -71,7 +71,7 @@ public class QWmediaTest {
AtomicLong minTime = new AtomicLong(Long.MAX_VALUE);
for (int i = 0; i < TOTAL_REQUESTS; i++) {
final int requestId = i;
final int requestId = i + 100;
executorService.submit(() -> {
long startTime = System.currentTimeMillis();
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment