thunguo opened a new pull request, #1100:
URL: https://github.com/apache/incubator-seata-go/pull/1100

   <!--  Thanks for sending a pull request!
   -->
   <!-- Please make sure you have read and understood the contributing 
guidelines -->
   
   - [ ] I have registered the PR 
[changes](https://github.com/apache/incubator-seata-go/tree/master/changes).
   
   **What this PR does**:
   * **Routing:** Fix `PostRoute` interceptor execution logic. 
     - Corrected an inverted condition that previously prevented the 
interceptor from being triggered.
     
   * **Type Safety:** Extract helpers for common internal operations.
     - Eliminated duplicated type assertions across the codebase.
     - Streamlined **compensation stack** building through unified helper 
functions.
     
   * **State Management:** Optimize `StateInstance` and `StateMachineInstance` 
interfaces.
     - Replaced getter/setter boilerplate with **exported-field structs** to 
reduce memory overhead and improve direct access performance.
     
   * **Architecture:** Simplify `process_ctrl` execution flow.
     - **Chain Collapse:** Reduced an 8-layer call chain down to **3 layers**.
     - Removed **5 redundant intermediary abstractions** that added cognitive 
load without functional value.
     
   * **Dead Code:** Clean up `AsyncEventBus` constructor.
     - Removed unused parameters to clarify the initialization sequence.
   
   **Which issue(s) this PR fixes**:
   
   <!--
   *Automatically closes linked issue when PR is merged.
   Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
   _If PR is about `failing-tests or flakes`, please post the related 
issues/tests in a comment and do not use `Fixes`_*
   -->
   
   Fixes #
   
   **Special notes for your reviewer**:
   
   **Does this PR introduce a user-facing change?**:
   
   <!--
   If no, just write "NONE" in the release-note block below.
   If yes, a release note is required:
   Enter your extended release note in the block below. If the PR requires 
additional action from users switching to the new release, include the string 
"action required".
   -->
   
   ```release-note
   NONE
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to