Skip to content

Commit 134c702

Browse files
committed
修复handle rule 缓存未删除的bug
1 parent 5d15c80 commit 134c702

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-cloud-gray-client/src/main/java/cn/springcloud/gray/handle/DefaultHandleRuleManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ private void resetHandleRuleInfos(String handleRuleType) {
118118
.collect(Collectors.toList());
119119
if (!handleRuleInfos.isEmpty()) {
120120
handleRuleTypeInfos.put(handleRuleType, handleRuleInfos);
121+
} else {
122+
handleRuleTypeInfos.remove(handleRuleType);
121123
}
122124
}
123125

0 commit comments

Comments
 (0)