Skip to content

Commit

Permalink
Only handle clientSendsOneMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed Dec 30, 2024
1 parent cf50a99 commit df7f322
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(
ServerCall<ReqT, RespT> call,
Metadata headers,
ServerCallHandler<ReqT, RespT> next) {

Callable<Object> callable = () -> new LiveServerCallListener<ReqT>(next.startCall(call, headers));

if (!call.getMethodDescriptor().getType().clientSendsOneMessage()) {
return next.startCall(call, headers);
}
Callable<Object> callable = () -> new LiveServerCallListener<>(next.startCall(call, headers));
GrpcInboundRequest request = new GrpcInboundRequest(call, headers);
try {
Object result = !request.isSystem()
Expand Down

0 comments on commit df7f322

Please sign in to comment.