Invoke msg count fix
This commit is contained in:
parent
723194d946
commit
21f6c58a89
@ -192,6 +192,7 @@ public class RemoteJsInvokeService extends AbstractJsInvokeService {
|
|||||||
Futures.addCallback(future, new FutureCallback<TbProtoQueueMsg<JsInvokeProtos.RemoteJsResponse>>() {
|
Futures.addCallback(future, new FutureCallback<TbProtoQueueMsg<JsInvokeProtos.RemoteJsResponse>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(@Nullable TbProtoQueueMsg<JsInvokeProtos.RemoteJsResponse> result) {
|
public void onSuccess(@Nullable TbProtoQueueMsg<JsInvokeProtos.RemoteJsResponse> result) {
|
||||||
|
queueInvokeMsgs.incrementAndGet();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -207,7 +208,6 @@ public class RemoteJsInvokeService extends AbstractJsInvokeService {
|
|||||||
log.trace("doInvokeFunction js-response took {}ms for uuid {}", stopWatch.getTotalTimeMillis(), response.getKey());
|
log.trace("doInvokeFunction js-response took {}ms for uuid {}", stopWatch.getTotalTimeMillis(), response.getKey());
|
||||||
JsInvokeProtos.JsInvokeResponse invokeResult = response.getValue().getInvokeResponse();
|
JsInvokeProtos.JsInvokeResponse invokeResult = response.getValue().getInvokeResponse();
|
||||||
if (invokeResult.getSuccess()) {
|
if (invokeResult.getSuccess()) {
|
||||||
queueInvokeMsgs.incrementAndGet();
|
|
||||||
return invokeResult.getResult();
|
return invokeResult.getResult();
|
||||||
} else {
|
} else {
|
||||||
final RuntimeException e = new RuntimeException(invokeResult.getErrorDetails());
|
final RuntimeException e = new RuntimeException(invokeResult.getErrorDetails());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user