refactor: 异步刷新资源池节点缓存

This commit is contained in:
CaptainB 2021-11-03 16:09:57 +08:00 committed by 刘瑞斌
parent f514ee159b
commit 7b3854724f
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import io.metersphere.commons.utils.LogUtil;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@ -22,6 +23,7 @@ public class CacheNodeAspect {
}
@After("cacheNodes()")
@Async
public void after() {
try {
consulService.updateCache();