Remove ContextUtil.enter() in client/consumer side

This commit is contained in:
Carpenter Lee 2018-11-08 17:52:52 +08:00
parent 257dde1d5e
commit d71e95c611
2 changed files with 0 additions and 4 deletions

View File

@ -54,7 +54,6 @@ public class SentinelDubboConsumerFilter extends AbstractDubboFilter implements
Entry methodEntry = null; Entry methodEntry = null;
try { try {
String resourceName = getResourceName(invoker, invocation); String resourceName = getResourceName(invoker, invocation);
ContextUtil.enter(resourceName);
interfaceEntry = SphU.entry(invoker.getInterface().getName(), EntryType.OUT); interfaceEntry = SphU.entry(invoker.getInterface().getName(), EntryType.OUT);
methodEntry = SphU.entry(resourceName, EntryType.OUT); methodEntry = SphU.entry(resourceName, EntryType.OUT);
@ -76,7 +75,6 @@ public class SentinelDubboConsumerFilter extends AbstractDubboFilter implements
if (interfaceEntry != null) { if (interfaceEntry != null) {
interfaceEntry.exit(); interfaceEntry.exit();
} }
ContextUtil.exit();
} }
} }
} }

View File

@ -68,7 +68,6 @@ public class SentinelGrpcClientInterceptor implements ClientInterceptor {
String resourceName = methodDescriptor.getFullMethodName(); String resourceName = methodDescriptor.getFullMethodName();
Entry entry = null; Entry entry = null;
try { try {
ContextUtil.enter(resourceName);
entry = SphU.entry(resourceName, EntryType.OUT); entry = SphU.entry(resourceName, EntryType.OUT);
// Allow access, forward the call. // Allow access, forward the call.
return new ForwardingClientCall.SimpleForwardingClientCall<ReqT, RespT>( return new ForwardingClientCall.SimpleForwardingClientCall<ReqT, RespT>(
@ -131,7 +130,6 @@ public class SentinelGrpcClientInterceptor implements ClientInterceptor {
if (entry != null) { if (entry != null) {
entry.exit(); entry.exit();
} }
ContextUtil.exit();
} }
} }