From 5ec7985089929889299d61b7b2c50dc820088866 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 21 Apr 2022 16:29:15 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AD=90=E7=B1=BB=E7=9A=84=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/commons/consumer/LoadTestConsumer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/commons/consumer/LoadTestConsumer.java b/backend/src/main/java/io/metersphere/commons/consumer/LoadTestConsumer.java index 2385b03090..df63e2763f 100644 --- a/backend/src/main/java/io/metersphere/commons/consumer/LoadTestConsumer.java +++ b/backend/src/main/java/io/metersphere/commons/consumer/LoadTestConsumer.java @@ -1,7 +1,6 @@ package io.metersphere.commons.consumer; import com.alibaba.fastjson.JSON; -import io.metersphere.Application; import io.metersphere.base.domain.LoadTestReport; import io.metersphere.commons.utils.CommonBeanFactory; import io.metersphere.commons.utils.LogUtil; @@ -40,7 +39,7 @@ public class LoadTestConsumer implements ApplicationRunner { if (subTypes != null) { return subTypes; } - Reflections reflections = new Reflections(Application.class); + Reflections reflections = new Reflections("io.metersphere"); subTypes = reflections.getSubTypesOf(LoadTestFinishEvent.class); return subTypes; }