Make buckets static so that we do not have multiple buckets that hold differnt rate limit counts in different vertx threads
@@ -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.
