浏览代码

提现并发调整

xiongzhu 4 年之前
父节点
当前提交
7ed00dbd71
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/izouma/nineth/service/UserBalanceService.java

+ 1 - 1
src/main/java/com/izouma/nineth/service/UserBalanceService.java

@@ -285,7 +285,7 @@ public class UserBalanceService {
 
     @Async
     public void autoWithdraw(LocalDate date) throws ExecutionException, InterruptedException {
-        ForkJoinPool customThreadPool = new ForkJoinPool(2);
+        ForkJoinPool customThreadPool = new ForkJoinPool(5);
         customThreadPool.submit(() -> {
             autoWithdrawRecordRepo.findByDate(date).ifPresent(a -> {
                 throw new BusinessException("今日已经提现过");