Skip to content

Commit

Permalink
Merge pull request #64 from codingapi/4.1.0
Browse files Browse the repository at this point in the history
InheritableThreadLocal
  • Loading branch information
xlorne authored Feb 28, 2018
2 parents 7f22dd1 + bd3df72 commit 5f8f55a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
public class TxCompensateLocal {

private final static ThreadLocal<TxCompensateLocal> currentLocal = new ThreadLocal<TxCompensateLocal>();
private final static ThreadLocal<TxCompensateLocal> currentLocal = new InheritableThreadLocal<TxCompensateLocal>();

private String groupId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TxTransactionLocal {

private Logger logger = LoggerFactory.getLogger(TxTransactionLocal.class);

private final static ThreadLocal<TxTransactionLocal> currentLocal = new ThreadLocal<TxTransactionLocal>();
private final static ThreadLocal<TxTransactionLocal> currentLocal = new InheritableThreadLocal<TxTransactionLocal>();

private String groupId;

Expand Down

0 comments on commit 5f8f55a

Please sign in to comment.