Don't re-register metrics for shared circuit breakers.

This commit is contained in:
Jon Chambers
2020-10-02 12:20:58 -04:00
committed by Jon Chambers
parent 0960e4caa4
commit 07d24f487a

View File

@@ -32,10 +32,6 @@ public class FaultTolerantPubSubConnection<K, V> {
this.circuitBreaker = circuitBreaker;
this.retry = retry;
CircuitBreakerUtil.registerMetrics(SharedMetricRegistries.getOrCreate(Constants.METRICS_NAME),
this.circuitBreaker,
FaultTolerantRedisCluster.class);
this.pubSubConnection.setNodeMessagePropagation(true);
final MetricRegistry metricRegistry = SharedMetricRegistries.getOrCreate(Constants.METRICS_NAME);