Skip to content

Commit

Permalink
fix routeLocator
Browse files Browse the repository at this point in the history
  • Loading branch information
kishkinova committed Nov 15, 2024
1 parent 8f4692b commit 312d1f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ List<FilterDefinition> getPostRoutingFilters(ServiceInstance serviceInstance) {
rateLimiterFilter.addArg("tokens", serviceInstance.getMetadata().get("gateway.rateLimiterTokens"));
rateLimiterFilter.addArg("refillDuration", serviceInstance.getMetadata().get("gateway.refillDuration"));
serviceRelated.add(rateLimiterFilter);
} else if (servicesToLimitRequestRate.contains(serviceInstance.getServiceId().toLowerCase())) {
} else if (servicesToLimitRequestRate != null && servicesToLimitRequestRate.contains(serviceInstance.getServiceId().toLowerCase())) {
FilterDefinition rateLimiterFilter = new FilterDefinition();
rateLimiterFilter.setName("InMemoryRateLimiterFilterFactory");
serviceRelated.add(rateLimiterFilter);
Expand Down

0 comments on commit 312d1f2

Please sign in to comment.