Skip to content

Commit

Permalink
dashboard: Fix the incorrect function name in ParamFlowRuleEntity (#2173
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jnan806 committed Apr 29, 2021
1 parent 0d22aca commit 2c12b07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public CompletableFuture<List<ParamFlowRuleEntity>> fetchParamFlowRulesOfMachine
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public ParamFlowRuleEntity(ParamFlowRule rule) {
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);
Expand Down

0 comments on commit 2c12b07

Please sign in to comment.