Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshk25 committed Oct 28, 2024
1 parent 7bbab42 commit ad50316
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit ad50316

Please sign in to comment.