From ad5031631ff7304f924c0b41f824636d01bbb89b Mon Sep 17 00:00:00 2001 From: hitesh Date: Mon, 28 Oct 2024 12:00:06 -0700 Subject: [PATCH] tidy --- .../org/apache/solr/servlet/PriorityBasedRateLimiter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/servlet/PriorityBasedRateLimiter.java b/solr/core/src/java/org/apache/solr/servlet/PriorityBasedRateLimiter.java index 3f7cbf1ab7c..bf7b241be78 100644 --- a/solr/core/src/java/org/apache/solr/servlet/PriorityBasedRateLimiter.java +++ b/solr/core/src/java/org/apache/solr/servlet/PriorityBasedRateLimiter.java @@ -6,7 +6,6 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import javax.servlet.http.HttpServletRequest; - import org.apache.solr.common.SolrException; import org.apache.solr.core.RateLimiterConfig; @@ -42,7 +41,9 @@ public SlotReservation handleRequest(HttpServletRequest request) { } RequestPriorities requestPriority = getRequestPriority(request); if (requestPriority == null) { - throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, "Request priority header is not defined or not set properly"); + throw new SolrException( + SolrException.ErrorCode.BAD_REQUEST, + "Request priority header is not defined or not set properly"); } try { if (!acquire(requestPriority)) {