Invoke msg count fix

This commit is contained in:
Volodymyr Babak 2022-07-07 12:23:56 +03:00
parent 723194d946
commit 21f6c58a89

View File

@ -192,6 +192,7 @@ public class RemoteJsInvokeService extends AbstractJsInvokeService {
Futures.addCallback(future, new FutureCallback<TbProtoQueueMsg<JsInvokeProtos.RemoteJsResponse>>() {
@Override
public void onSuccess(@Nullable TbProtoQueueMsg<JsInvokeProtos.RemoteJsResponse> result) {
queueInvokeMsgs.incrementAndGet();
}
@Override
@ -207,7 +208,6 @@ public class RemoteJsInvokeService extends AbstractJsInvokeService {
log.trace("doInvokeFunction js-response took {}ms for uuid {}", stopWatch.getTotalTimeMillis(), response.getKey());
JsInvokeProtos.JsInvokeResponse invokeResult = response.getValue().getInvokeResponse();
if (invokeResult.getSuccess()) {
queueInvokeMsgs.incrementAndGet();
return invokeResult.getResult();
} else {
final RuntimeException e = new RuntimeException(invokeResult.getErrorDetails());