refactor: 异步刷新资源池节点缓存
This commit is contained in:
parent
f514ee159b
commit
7b3854724f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue