Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
jchoi614 committed Jul 2, 2024
1 parent 4d1c079 commit 29613c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.lyft.data.gateway.ha.handler;

import static com.codahale.metrics.MetricRegistry.name;

import com.codahale.metrics.Counter;
import com.codahale.metrics.Meter;
import com.codahale.metrics.MetricRegistry;
Expand Down Expand Up @@ -30,7 +32,6 @@
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.util.Callback;

import static com.codahale.metrics.MetricRegistry.name;

@Slf4j
public class QueryIdCachingProxyHandler extends ProxyHandler {
Expand Down Expand Up @@ -281,12 +282,11 @@ protected void postConnectionHook(
} catch (Exception e) {
log.error("Error in proxying falling back to super call", e);
}
if (response.getStatus() >= 500){
if (response.getStatus() >= 500) {
errorCounter5xx.inc();
} else if (response.getStatus() >= 400){
} else if (response.getStatus() >= 400) {
errorCounter4xx.inc();
}

super.postConnectionHook(request, response, buffer, offset, length, callback);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.lyft.data.gateway.ha.module;

import com.codahale.metrics.Counter;
import com.codahale.metrics.Meter;
import com.codahale.metrics.MetricRegistry;
import com.google.inject.Provides;
Expand All @@ -25,7 +24,6 @@
import com.lyft.data.proxyserver.ProxyServerConfiguration;
import io.dropwizard.setup.Environment;

import static com.codahale.metrics.MetricRegistry.name;

public class HaGatewayProviderModule extends AppModule<HaGatewayConfiguration, Environment> {

Expand Down

0 comments on commit 29613c4

Please sign in to comment.