moremind commented on issue #4511: URL: https://github.com/apache/shenyu/issues/4511#issuecomment-1488688669
@justin-wick this question is related to #4513,I have fixed it in https://github.com/apache/shenyu/pull/4515, you can use master branch after #4515 be merge or you can change it as follow: ```java if (ruleData.getEnabled()) { if (CollectionUtils.isEmpty(ruleData.getBeforeConditionDataList())) { eventPublisher.publishEvent(new RuleTrieEvent(RuleTrieEventEnum.INSERT, ruleData)); } else { // if rule data has before condition, update trie eventPublisher.publishEvent(new RuleTrieEvent(RuleTrieEventEnum.UPDATE, ruleData)); } } else { eventPublisher.publishEvent(new RuleTrieEvent(RuleTrieEventEnum.REMOVE, ruleData)); } ```` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
