Skip to content

Commit

Permalink
顺便修复一个小BUG。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Jul 21, 2020
1 parent 9435e7a commit 4a9c4dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -72,8 +72,8 @@ public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcExcept
return invoker.invoke(invocation);
} finally {
if (bind) {
String unbindXid = RootContext.unbind();
String previousBranchType = RootContext.getBranchType();
String unbindXid = RootContext.unbind();
if (StringUtils.equals(BranchType.TCC.name(), previousBranchType)) {
RootContext.unbindBranchType();
}
Expand Down
Expand Up @@ -69,8 +69,8 @@ public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcExcept
return invoker.invoke(invocation);
} finally {
if (bind) {
String unbindXid = RootContext.unbind();
String previousBranchType = RootContext.getBranchType();
String unbindXid = RootContext.unbind();
if (StringUtils.equals(BranchType.TCC.name(), previousBranchType)) {
RootContext.unbindBranchType();
}
Expand Down

0 comments on commit 4a9c4dd

Please sign in to comment.