Skip to content

Commit

Permalink
Merge pull request #5920 from halibobo1205/fix/endpoint-concurrent-ac…
Browse files Browse the repository at this point in the history
…cess

fix(http/metric): change endpoint variable from member to local
  • Loading branch information
lvs007 committed Jul 22, 2024
2 parents 4211348 + 90a6e8f commit 27cd42f
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 27cd42f

Please sign in to comment.