Skip to content

Commit 13a89b7

Browse files
authored
fix: add getActiveRuleId method to fix javaagent ratelimit method not found error (#606)
1 parent 0a55fbd commit 13a89b7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

polaris-ratelimit/polaris-ratelimit-api/src/main/java/com/tencent/polaris/ratelimit/api/rpc/QuotaResponse.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ public String getActiveRuleName() {
6868
return activeRuleName;
6969
}
7070

71+
public String getActiveRuleId() {
72+
return this.getActiveRule().getId().getValue();
73+
}
74+
7175
public Rule getActiveRule() {
7276
return activeRule;
7377
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<properties>
6868
<!-- Project revision -->
69-
<revision>2.0.0.1</revision>
69+
<revision>2.0.0.2-SNAPSHOT</revision>
7070

7171
<timestamp>${maven.build.timestamp}</timestamp>
7272
<skip.maven.deploy>false</skip.maven.deploy>

0 commit comments

Comments
 (0)