mirror of https://github.com/grpc/grpc-java.git
api: Return a noop MetricRecorder from Helper by default
Since 06df25b65d, WRR has been calling this method, and it will get an
exception. We don't want WRR to be broken until we have MetricRecorder
fully plumbed.
This commit is contained in:
parent
4c78a9746c
commit
27d57585cd
|
|
@ -1243,7 +1243,7 @@ public abstract class LoadBalancer {
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/11110")
|
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/11110")
|
||||||
public MetricRecorder getMetricRecorder() {
|
public MetricRecorder getMetricRecorder() {
|
||||||
throw new UnsupportedOperationException();
|
return new MetricRecorder() {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue