Skip to content

Commit

Permalink
Revert "refactor(接口测试): 优化任务下发方式"
Browse files Browse the repository at this point in the history
This reverts commit e403cbe.
  • Loading branch information
fit2-zhao committed Apr 23, 2023
1 parent e403cbe commit d91db5f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private void runNode(JmeterRunRequestDTO request) {
}
}

private void send(JmeterRunRequestDTO request) {
private synchronized void send(JmeterRunRequestDTO request) {
try {
if (redisTemplate.opsForValue().get(SmoothWeighted.EXEC_INDEX + request.getPoolId()) != null) {
long index = Long.parseLong(redisTemplate.opsForValue().get(SmoothWeighted.EXEC_INDEX + request.getPoolId()).toString());
Expand Down Expand Up @@ -199,7 +199,7 @@ private void send(JmeterRunRequestDTO request) {
}
}

private void nodeDebug(JmeterRunRequestDTO request) {
private synchronized void nodeDebug(JmeterRunRequestDTO request) {
ApiPoolDebugService apiPoolDebugService = CommonBeanFactory.getBean(ApiPoolDebugService.class);
if (apiPoolDebugService != null) {
apiPoolDebugService.run(request);
Expand Down

0 comments on commit d91db5f

Please sign in to comment.