From 563c6123953e05f2ad6edb14a23e93f34299146c Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Mon, 14 Aug 2023 21:42:31 +0100 Subject: [PATCH] remove pbean --- src/main/java/stirling/software/SPDF/config/Beans.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/config/Beans.java b/src/main/java/stirling/software/SPDF/config/Beans.java index b4aa1ffb..c22c42fe 100644 --- a/src/main/java/stirling/software/SPDF/config/Beans.java +++ b/src/main/java/stirling/software/SPDF/config/Beans.java @@ -18,14 +18,6 @@ import io.github.bucket4j.Refill; @Configuration public class Beans implements WebMvcConfigurer { - - @Bean - public Bucket createRateLimitBucket() { - Refill refill = Refill.of(1000, Duration.ofDays(1)); - Bandwidth limit = Bandwidth.classic(1000, refill).withInitialTokens(1000); - return Bucket4j.builder().addLimit(limit).build(); - } - @Override public void addInterceptors(InterceptorRegistry registry) {