浏览代码

disable app priming in test mode

tags/v0.12.4
Jonathan Cobb 4 年前
父节点
当前提交
0a4b9c470f
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. +5
    -2
      bubble-server/src/main/java/bubble/service/stream/StandardAppPrimerService.java

+ 5
- 2
bubble-server/src/main/java/bubble/service/stream/StandardAppPrimerService.java 查看文件

@@ -47,13 +47,16 @@ public class StandardAppPrimerService implements AppPrimerService {
@Getter(lazy=true) private final boolean primingEnabled = initPrimingEnabled();
private boolean initPrimingEnabled() {
if (configuration == null) return die("initPrimingEnabled: configuration was null");
if (configuration.testMode()) {
log.info("initPrimingEnabled: configuration.testMode is true, not priming");
}
final BubbleNetwork thisNetwork = configuration.getThisNetwork();
if (thisNetwork == null) {
log.info("primeApps: thisNetwork is null, not priming");
log.info("initPrimingEnabled: thisNetwork is null, not priming");
return false;
}
if (thisNetwork.getInstallType() != AnsibleInstallType.node) {
log.info("primeApps: thisNetwork is not a node, not priming");
log.info("initPrimingEnabled: thisNetwork is not a node, not priming");
return false;
}
return true;


正在加载...
取消
保存