Browse Source

Update flex domains with empty set if needed

pull/58/head
Kristijan Mitrovic 4 years ago
parent
commit
eb5b3137c6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bubble-server/src/main/java/bubble/service/stream/StandardAppPrimerService.java

+ 1
- 1
bubble-server/src/main/java/bubble/service/stream/StandardAppPrimerService.java View File

@@ -282,7 +282,7 @@ public class StandardAppPrimerService implements AppPrimerService {
if (!empty(flexExcludeDomains)) flexDomains.removeAll(flexExcludeDomains); if (!empty(flexExcludeDomains)) flexDomains.removeAll(flexExcludeDomains);
AppRuleDriver.defineRedisFlexSet(redis, ip, app.getName() + ":" + app.getUuid(), AppRuleDriver.defineRedisFlexSet(redis, ip, app.getName() + ":" + app.getUuid(),
flexDomains.toArray(String[]::new)); flexDomains.toArray(String[]::new));
updateFlexRouters = !empty(flexDomains);
updateFlexRouters = true;
} }
if (!empty(flexExcludeDomains)) { if (!empty(flexExcludeDomains)) {
AppRuleDriver.defineRedisFlexExcludeSet(redis, ip, app.getName() + ":" + app.getUuid(), AppRuleDriver.defineRedisFlexExcludeSet(redis, ip, app.getName() + ":" + app.getUuid(),


Loading…
Cancel
Save