Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
36cad71a
Commit
36cad71a
authored
Mar 15, 2022
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug/getAdviserBook' into 'master'
bug: [none] 接口优化,增大线程池 See merge request rays/pcloud-book!1520
parents
4ee33b52
4c8b8da4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
BookBizImpl.java
.../main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
+0
-5
ThreadPoolUtils.java
...ain/java/com/pcloud/book/util/common/ThreadPoolUtils.java
+2
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/book/biz/impl/BookBizImpl.java
View file @
36cad71a
...
@@ -2613,11 +2613,6 @@ public class BookBizImpl implements BookBiz {
...
@@ -2613,11 +2613,6 @@ public class BookBizImpl implements BookBiz {
if
(
bookDto
==
null
)
{
if
(
bookDto
==
null
)
{
return
new
BookDto
();
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
(()
->
{
CompletableFuture
<
Void
>
fillClassifyFuture
=
CompletableFuture
.
runAsync
(()
->
{
...
...
pcloud-service-book/src/main/java/com/pcloud/book/util/common/ThreadPoolUtils.java
View file @
36cad71a
...
@@ -106,8 +106,9 @@ public class ThreadPoolUtils {
...
@@ -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
,
12
8
,
0
,
TimeUnit
.
SECONDS
,
new
LinkedBlockingQueue
<>(),
new
ThreadFactoryBuilder
().
setNameFormat
(
"remote-call-pool-%d"
).
build
(),
new
ThreadPoolExecutor
.
CallerRunsPolicy
());
new
LinkedBlockingQueue
<>(),
new
ThreadFactoryBuilder
().
setNameFormat
(
"remote-call-pool-%d"
).
build
(),
new
ThreadPoolExecutor
.
CallerRunsPolicy
());
/**
/**
* 书刊记录埋点线程池
* 书刊记录埋点线程池
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment