Skip to content

Commit 31e0544

Browse files
tomatoishealthyhalibobo1205
authored andcommitted
fix(http/metric): change endpoint variable from member to local
1 parent e7c8d40 commit 31e0544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/src/main/java/org/tron/core/services/filter/HttpInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
@Slf4j(topic = "httpInterceptor")
1919
public class HttpInterceptor implements Filter {
2020

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

3029
@Override
3130
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) {
31+
String endpoint = MetricLabels.UNDEFINED;
3232
try {
3333
if (!(request instanceof HttpServletRequest)) {
3434
chain.doFilter(request, response);

0 commit comments

Comments
 (0)