Closed deepak-auto closed 1 year ago
Using the example in the README, can we have this method signature
ReactorGreeterGrpc.GreeterImplBase svc = new ReactorGreeterGrpc.GreeterImplBase() { @Override public Mono<HelloResponse> sayHello(HelloRequest request) { return greet("Hello", request); } };
instead of
ReactorGreeterGrpc.GreeterImplBase svc = new ReactorGreeterGrpc.GreeterImplBase() { @Override public Mono<HelloResponse> sayHello(Mono<HelloRequest> request) { return request.map(protoRequest -> greet("Hello", protoRequest)); } };
?
This way, we can access the request object from anywhere in the method. It will prevent us from writing an extra map function as in the example above.
request
map
Duplicate of https://github.com/salesforce/reactive-grpc/issues/78 (shouldn't be closed, btw :))
Have submitted https://github.com/salesforce/reactive-grpc/pull/301 (better later then never, huh? 😄)
Using the example in the README, can we have this method signature
instead of
?
This way, we can access the
request
object from anywhere in the method. It will prevent us from writing an extramap
function as in the example above.