WillemJiang closed pull request #193: SCB-615 fix typos in EventScanner
URL: https://github.com/apache/incubator-servicecomb-saga/pull/193
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/EventScanner.java
 
b/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/EventScanner.java
index 8082ab3f..298274cb 100644
--- 
a/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/EventScanner.java
+++ 
b/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/EventScanner.java
@@ -147,19 +147,17 @@ private void updateTransactionStatus() {
 
   private void markSagaEnded(TxEvent event) {
     if 
(commandRepository.findUncompletedCommands(event.globalTxId()).isEmpty()) {
-      markGlobalTxEntWithEvent(event);
+      markGlobalTxEndWithEvent(event);
     }
   }
 
-  private void markGlobalTxEntWithEvent(TxEvent event) {
+  private void markGlobalTxEndWithEvent(TxEvent event) {
     eventRepository.save(toSagaEndedEvent(event));
     LOG.info("Marked end of transaction with globalTxId {}", 
event.globalTxId());
   }
 
   private void markGlobalTxEndWithEvents(List<TxEvent> events) {
-    events.forEach(event -> {
-      markGlobalTxEntWithEvent(event);
-    });
+    events.forEach(this::markGlobalTxEndWithEvent);
   }
 
   private TxEvent toTxAbortedEvent(TxTimeout timeout) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to