optimized sync on channel write (#11440)
This commit is contained in:
parent
db8dee1165
commit
c79ed3bf04
|
|
@ -265,7 +265,7 @@ public class TripleInvoker<T> extends AbstractInvoker<T> {
|
|||
if (!super.isAvailable()) {
|
||||
return false;
|
||||
}
|
||||
return connectionClient.isAvailable();
|
||||
return connectionClient.isConnected();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class TripleInvokerTest {
|
|||
.thenReturn(connectionClient);
|
||||
when(connectionClient.getChannel(true))
|
||||
.thenReturn(channel);
|
||||
when(connectionClient.isAvailable()).thenReturn(true);
|
||||
when(connectionClient.isConnected()).thenReturn(true);
|
||||
|
||||
ExecutorService executorService = ExecutorRepository.getInstance(url.getOrDefaultApplicationModel())
|
||||
.createExecutorIfAbsent(url);
|
||||
|
|
|
|||
Loading…
Reference in New Issue