Make buckets static so that we do not have multiple buckets that hold differnt rate limit counts in different vertx threads
MODIFY
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/InMemoryRateLimiterComponent.java
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/InMemoryRateLimiterComponent.java
@@ -33,7 +33,7 @@ import java.util.Map;
*/
public class InMemoryRateLimiterComponent implements IRateLimiterComponent {
- private Map<String, RateLimiterBucket> buckets = new HashMap<>();
+ private static Map<String, RateLimiterBucket> buckets = new HashMap<>();
/**
* Constructor.

Make buckets static so that we do not have multiple buckets that hold differnt rate limit counts in different vertx threads (#723)