Skip to content

Commit

Permalink
Remove ContextUtil.enter() in client/consumer side
Browse files Browse the repository at this point in the history
  • Loading branch information
CarpenterLee committed Nov 8, 2018
1 parent 257dde1 commit d71e95c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcExcept
Entry methodEntry = null;
try {
String resourceName = getResourceName(invoker, invocation);
ContextUtil.enter(resourceName);
interfaceEntry = SphU.entry(invoker.getInterface().getName(), EntryType.OUT);
methodEntry = SphU.entry(resourceName, EntryType.OUT);

Expand All @@ -76,7 +75,6 @@ public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcExcept
if (interfaceEntry != null) {
interfaceEntry.exit();
}
ContextUtil.exit();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public <ReqT, RespT> ClientCall<ReqT, RespT> interceptCall(MethodDescriptor<ReqT
String resourceName = methodDescriptor.getFullMethodName();
Entry entry = null;
try {
ContextUtil.enter(resourceName);
entry = SphU.entry(resourceName, EntryType.OUT);
// Allow access, forward the call.
return new ForwardingClientCall.SimpleForwardingClientCall<ReqT, RespT>(
Expand Down Expand Up @@ -131,7 +130,6 @@ public void sendMessage(ReqT message) {
if (entry != null) {
entry.exit();
}
ContextUtil.exit();
}
}

Expand Down

0 comments on commit d71e95c

Please sign in to comment.