mirror of https://github.com/grpc/grpc-java.git
api: clean up duplicated method in InternalServerInterceptors (#8261)
This commit is contained in:
parent
c8ba601529
commit
25122f9e83
|
|
@ -21,11 +21,6 @@ package io.grpc;
|
|||
*/
|
||||
@Internal
|
||||
public final class InternalServerInterceptors {
|
||||
public static <ReqT, RespT> ServerCallHandler<ReqT, RespT> interceptCallHandler(
|
||||
ServerInterceptor interceptor, ServerCallHandler<ReqT, RespT> callHandler) {
|
||||
return ServerInterceptors.InterceptCallHandler.create(interceptor, callHandler);
|
||||
}
|
||||
|
||||
public static <OrigReqT, OrigRespT, WrapReqT, WrapRespT>
|
||||
ServerMethodDefinition<WrapReqT, WrapRespT> wrapMethod(
|
||||
final ServerMethodDefinition<OrigReqT, OrigRespT> definition,
|
||||
|
|
|
|||
|
|
@ -604,7 +604,7 @@ public final class ServerImpl extends io.grpc.Server implements InternalInstrume
|
|||
stream.getAuthority()));
|
||||
ServerCallHandler<ReqT, RespT> handler = methodDef.getServerCallHandler();
|
||||
for (ServerInterceptor interceptor : interceptors) {
|
||||
handler = InternalServerInterceptors.interceptCallHandler(interceptor, handler);
|
||||
handler = InternalServerInterceptors.interceptCallHandlerCreate(interceptor, handler);
|
||||
}
|
||||
ServerMethodDefinition<ReqT, RespT> interceptedDef = methodDef.withServerCallHandler(handler);
|
||||
ServerMethodDefinition<?, ?> wMethodDef = binlog == null
|
||||
|
|
|
|||
Loading…
Reference in New Issue