diff --git a/src/main/java/com/eudemon/ratelimiter/AbstractUrlRateLimiter.java b/src/main/java/com/eudemon/ratelimiter/AbstractUrlRateLimiter.java index 69f8895..4dd94d0 100644 --- a/src/main/java/com/eudemon/ratelimiter/AbstractUrlRateLimiter.java +++ b/src/main/java/com/eudemon/ratelimiter/AbstractUrlRateLimiter.java @@ -87,7 +87,7 @@ public AbstractUrlRateLimiter(RateLimitRule rule, RateLimiterInterceptorChain ch * @param interceptors the interceptor list to be added into the interceptor chain. */ @Override - public void addInteceptors(List interceptors) { + public void addInterceptors(List interceptors) { if (interceptors != null && !interceptors.isEmpty()) { this.interceptorChain.addInterceptors(interceptors); } diff --git a/src/main/java/com/eudemon/ratelimiter/DistributedUrlRateLimiter.java b/src/main/java/com/eudemon/ratelimiter/DistributedUrlRateLimiter.java index 2e08515..6e504bb 100644 --- a/src/main/java/com/eudemon/ratelimiter/DistributedUrlRateLimiter.java +++ b/src/main/java/com/eudemon/ratelimiter/DistributedUrlRateLimiter.java @@ -174,7 +174,7 @@ public DistributedUrlRateLimiter build() { DistributedUrlRateLimiter ratelimiter = new DistributedUrlRateLimiter(executor, source); if (this.interceptors != null && !this.interceptors.isEmpty()) { - ratelimiter.addInteceptors(interceptors); + ratelimiter.addInterceptors(interceptors); } return ratelimiter; } diff --git a/src/main/java/com/eudemon/ratelimiter/MemoryUrlRateLimiter.java b/src/main/java/com/eudemon/ratelimiter/MemoryUrlRateLimiter.java index 4098f28..7f8ba18 100644 --- a/src/main/java/com/eudemon/ratelimiter/MemoryUrlRateLimiter.java +++ b/src/main/java/com/eudemon/ratelimiter/MemoryUrlRateLimiter.java @@ -138,7 +138,7 @@ public MemoryUrlRateLimiter build() { MemoryUrlRateLimiter ratelimiter = new MemoryUrlRateLimiter(source); if (this.interceptors != null && !this.interceptors.isEmpty()) { - ratelimiter.addInteceptors(interceptors); + ratelimiter.addInterceptors(interceptors); } return ratelimiter; } diff --git a/src/main/java/com/eudemon/ratelimiter/UrlRateLimiter.java b/src/main/java/com/eudemon/ratelimiter/UrlRateLimiter.java index ccfd6e6..41d36a8 100644 --- a/src/main/java/com/eudemon/ratelimiter/UrlRateLimiter.java +++ b/src/main/java/com/eudemon/ratelimiter/UrlRateLimiter.java @@ -35,6 +35,6 @@ void limit(String appId, String url) * * @param interceptors the interceptor list to be added into the interceptor chain. */ - void addInteceptors(List interceptors); + void addInterceptors(List interceptors); }