seanyinx commented on a change in pull request #122: SCB-239 omega stateless
URL: 
https://github.com/apache/incubator-servicecomb-saga/pull/122#discussion_r163435632
 
 

 ##########
 File path: 
omega/omega-transaction/src/main/java/org/apache/servicecomb/saga/omega/transaction/SagaStartAspect.java
 ##########
 @@ -51,11 +47,10 @@ Object advise(ProceedingJoinPoint joinPoint, SagaStart 
sagaStart) throws Throwab
     initializeOmegaContext();
     Method method = ((MethodSignature) joinPoint.getSignature()).getMethod();
 
-    TimeAwareInterceptor interceptor = new 
TimeAwareInterceptor(sagaStartAnnotationProcessor);
-    interceptor.preIntercept(context.globalTxId(), method.toString());
+    OnceAwareInterceptor interceptor = new 
OnceAwareInterceptor(sagaStartAnnotationProcessor);
 
 Review comment:
   we don't need to wrap sagaStartAnnotationProcessor if no scheduled timeout 
task

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to