|
|
@ -99,8 +99,9 @@ public class QuotaCheckReactiveFilter implements WebFilter, Ordered {
|
|
|
|
Map<String, String> labels = getRequestLabels(exchange, localNamespace, localService);
|
|
|
|
Map<String, String> labels = getRequestLabels(exchange, localNamespace, localService);
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
String path = exchange.getRequest().getURI().getPath();
|
|
|
|
QuotaResponse quotaResponse = QuotaCheckUtils.getQuota(limitAPI,
|
|
|
|
QuotaResponse quotaResponse = QuotaCheckUtils.getQuota(limitAPI,
|
|
|
|
localNamespace, localService, 1, labels, null);
|
|
|
|
localNamespace, localService, 1, labels, path);
|
|
|
|
|
|
|
|
|
|
|
|
if (quotaResponse.getCode() == QuotaResultCode.QuotaResultLimited) {
|
|
|
|
if (quotaResponse.getCode() == QuotaResultCode.QuotaResultLimited) {
|
|
|
|
ServerHttpResponse response = exchange.getResponse();
|
|
|
|
ServerHttpResponse response = exchange.getResponse();
|
|
|
|