Skip to content

Commit

Permalink
完善了修改地区的功能,加大了并发数量
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrric committed Sep 17, 2020
1 parent 7eff29d commit 11abd91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
**共享资源,仅能用于学习,请勿用于商业。**
**Sharing of resources, can only be used for learning, not for business!!!**
## 更新日志
- 2020.09.17 v1.2增加了地区选择功能
- 2020.08.14 V1.1增加了控制台模式,通过java -jar sec-kill.jar -c 进入
优化了交互,减少了并发的数量避免操作频繁
- 2020.08.11 优化了req-header的解析,目测可以万能解析;优化了交互
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void startSecKill(Integer vaccineId, String startDateStr, MainFrame mainF
now = System.currentTimeMillis();
}while (now + 200 < startDate);
logger.info("###########第二波 开始秒杀###########");
for (int i = 0; i < 10; i++) {
for (int i = 0; i < 50; i++) {
service.submit(task);
}
//准点(提前20毫秒)秒杀
Expand Down

0 comments on commit 11abd91

Please sign in to comment.