Pārlūkot izejas kodu

Improve singleton logic in SendMetricCommandHandler (#1294)

master
mantuliu GitHub pirms 4 gadiem
vecāks
revīzija
f3b1b126c8
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      sentinel-transport/sentinel-transport-common/src/main/java/com/alibaba/csp/sentinel/command/handler/SendMetricCommandHandler.java

+ 1
- 1
sentinel-transport/sentinel-transport-common/src/main/java/com/alibaba/csp/sentinel/command/handler/SendMetricCommandHandler.java Parādīt failu

@@ -42,7 +42,7 @@ import com.alibaba.csp.sentinel.util.TimeUtil;
+ "startTime={startTime}&endTime={endTime}&maxLines={maxLines}&identify={resourceName}")
public class SendMetricCommandHandler implements CommandHandler<String> {

private MetricSearcher searcher;
private volatile MetricSearcher searcher;

private final Object lock = new Object();



Notiek ielāde…
Atcelt
Saglabāt