You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by se...@apache.org on 2018/01/10 08:01:13 UTC

[incubator-servicecomb-saga] 03/05: SCB-164 reused const ACK to avoid recreate it every time

This is an automated email from the ASF dual-hosted git repository.

seanyinx pushed a commit to branch SCB-164_reconnect_on_crash
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git

commit 01b7e33fab6a0c09b6b2b9931201b56232a69c40
Author: seanyinx <se...@huawei.com>
AuthorDate: Tue Jan 9 17:42:37 2018 +0800

    SCB-164 reused const ACK to avoid recreate it every time
    
    Signed-off-by: seanyinx <se...@huawei.com>
---
 .../apache/servicecomb/saga/alpha/server/GrpcTxEventEndpointImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alpha/alpha-server/src/main/java/org/apache/servicecomb/saga/alpha/server/GrpcTxEventEndpointImpl.java b/alpha/alpha-server/src/main/java/org/apache/servicecomb/saga/alpha/server/GrpcTxEventEndpointImpl.java
index fc5f608..4b3ea1b 100644
--- a/alpha/alpha-server/src/main/java/org/apache/servicecomb/saga/alpha/server/GrpcTxEventEndpointImpl.java
+++ b/alpha/alpha-server/src/main/java/org/apache/servicecomb/saga/alpha/server/GrpcTxEventEndpointImpl.java
@@ -67,7 +67,7 @@ class GrpcTxEventEndpointImpl extends TxEventServiceImplBase {
       callback.disconnect();
     }
 
-    responseObserver.onNext(GrpcAck.newBuilder().build());
+    responseObserver.onNext(ACK);
     responseObserver.onCompleted();
   }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@servicecomb.apache.org" <co...@servicecomb.apache.org>.