Commit 36cad71a by 田超

Merge branch 'fixbug/getAdviserBook' into 'master'

bug: [none] 接口优化,增大线程池

See merge request rays/pcloud-book!1520
parents 4ee33b52 4c8b8da4
......@@ -2613,11 +2613,6 @@ public class BookBizImpl implements BookBiz {
if (bookDto == null) {
return new BookDto();
}
Integer joinGroupType = bookGroupDao.getJoinGroupType(paramMap);
if (JoinGroupTypeEnum.XIAORUI.getCode().equals(joinGroupType)) {
Long classifyId = bookRaysClassifyDao.getClassifyIdByBookTemplateId(bookDto.getTempletId());
bookDto.setClassifyId(null != classifyId ? classifyId.intValue() : null);
}
// 填充分类
CompletableFuture<Void> fillClassifyFuture = CompletableFuture.runAsync(() -> {
......
......@@ -106,8 +106,9 @@ public class ThreadPoolUtils {
/**
* 远程调用线程池
* maximumPoolSize设置大一些,避免阻塞
*/
public static final ThreadPoolExecutor REMOTE_CALL_POOL = new ThreadPoolExecutor(8, 8, 0, TimeUnit.SECONDS,
public static final ThreadPoolExecutor REMOTE_CALL_POOL = new ThreadPoolExecutor(8, 128, 0, TimeUnit.SECONDS,
new LinkedBlockingQueue<>(), new ThreadFactoryBuilder().setNameFormat("remote-call-pool-%d").build(), new ThreadPoolExecutor.CallerRunsPolicy());
/**
* 书刊记录埋点线程池
......
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