Browse Source

Improve singleton logic in SendMetricCommandHandler (#1294)

master
mantuliu GitHub 4 years ago
parent
commit
f3b1b126c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  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 View File

@@ -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();



Loading…
Cancel
Save