mirror of
https://github.com/apache/dubbo.git
synced 2024-10-23 07:04:37 +08:00
Fix 2.6.x LoadBalance SPI not work (#11730)
This commit is contained in:
parent
ffb2bbbffc
commit
a6ef8910ca
@ -50,6 +50,11 @@ public interface Invoker<T> extends org.apache.dubbo.rpc.Invoker<T> {
|
||||
return invoker.getInterface();
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invocation invocation) throws org.apache.dubbo.rpc.RpcException {
|
||||
return new Result.CompatibleResult(invoker.invoke(invocation));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result invoke(Invocation invocation) throws RpcException {
|
||||
return new Result.CompatibleResult(invoker.invoke(invocation.getOriginal()));
|
||||
|
@ -103,6 +103,11 @@ public interface Result extends org.apache.dubbo.rpc.Result {
|
||||
return delegate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.apache.dubbo.rpc.Result whenCompleteWithContext(BiConsumer<org.apache.dubbo.rpc.Result, Throwable> fn) {
|
||||
return delegate.whenCompleteWithContext(fn);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getValue() {
|
||||
return delegate.getValue();
|
||||
|
Loading…
Reference in New Issue
Block a user