Skip to content

Commit

Permalink
fix(http/metric): change endpoint variable from member to local
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatoishealthy authored and halibobo1205 committed Jun 19, 2024
1 parent e7c8d40 commit 31e0544
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
@Slf4j(topic = "httpInterceptor")
public class HttpInterceptor implements Filter {

private String endpoint;
private final int HTTP_SUCCESS = 200;
private final int HTTP_BAD_REQUEST = 400;
private final int HTTP_NOT_ACCEPTABLE = 406;
Expand All @@ -29,6 +28,7 @@ public void init(FilterConfig filterConfig) {

@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) {
String endpoint = MetricLabels.UNDEFINED;
try {
if (!(request instanceof HttpServletRequest)) {
chain.doFilter(request, response);
Expand Down

0 comments on commit 31e0544

Please sign in to comment.