GH-744 Add initial biStreaming support for Function<Flux, Flux> in gRPC module

This commit is contained in:
Oleg Zhurakousky
2021-09-21 13:40:09 +02:00
parent 28b1c86849
commit 70a789da69
5 changed files with 103 additions and 13 deletions

View File

@@ -775,7 +775,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
input = FunctionTypeUtils.isMono(this.inputType) ? Mono.just(input) : Flux.just(input);
}
}
else if (input instanceof Iterable && !FunctionTypeUtils.isTypeCollection(this.inputType)) {
else if (!(input instanceof Publisher) && input instanceof Iterable && !FunctionTypeUtils.isTypeCollection(this.inputType)) {
input = Flux.fromIterable((Iterable) input);
}
return input;