dashboard: Fix the incorrect function name in ParamFlowRuleEntity (#2173)
This commit is contained in:
parent
0d22aca591
commit
2c12b07534
|
|
@ -503,7 +503,7 @@ public class SentinelApiClient {
|
|||
AssertUtil.isTrue(port > 0, "Bad machine port");
|
||||
return fetchItemsAsync(ip, port, GET_PARAM_RULE_PATH, null, ParamFlowRule.class)
|
||||
.thenApply(rules -> rules.stream()
|
||||
.map(e -> ParamFlowRuleEntity.fromAuthorityRule(app, ip, port, e))
|
||||
.map(e -> ParamFlowRuleEntity.fromParamFlowRule(app, ip, port, e))
|
||||
.collect(Collectors.toList())
|
||||
);
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public class ParamFlowRuleEntity extends AbstractRuleEntity<ParamFlowRule> {
|
|||
this.rule = rule;
|
||||
}
|
||||
|
||||
public static ParamFlowRuleEntity fromAuthorityRule(String app, String ip, Integer port, ParamFlowRule rule) {
|
||||
public static ParamFlowRuleEntity fromParamFlowRule(String app, String ip, Integer port, ParamFlowRule rule) {
|
||||
ParamFlowRuleEntity entity = new ParamFlowRuleEntity(rule);
|
||||
entity.setApp(app);
|
||||
entity.setIp(ip);
|
||||
|
|
|
|||
Loading…
Reference in New Issue