|
|
@@ -10,6 +10,7 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.context.event.EventListener;
|
|
|
import org.springframework.core.io.ClassPathResource;
|
|
|
+import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.StreamUtils;
|
|
|
@@ -53,6 +54,7 @@ public class SchemaService extends AbstractService {
|
|
|
refreshSchema(event.getDataCenter());
|
|
|
}
|
|
|
|
|
|
+ @Async
|
|
|
@EventListener(MasterEvent.class)
|
|
|
public void onMasterEvent(MasterEvent event) throws Exception {
|
|
|
refreshSchema(event.getMaster());
|