Use Publishers.zip instead of Streams.zip
This commit is contained in:
parent
91c2b7afad
commit
b26e746120
|
|
@ -26,7 +26,6 @@ import java.util.Optional;
|
||||||
import org.reactivestreams.Publisher;
|
import org.reactivestreams.Publisher;
|
||||||
import reactor.Publishers;
|
import reactor.Publishers;
|
||||||
import reactor.fn.tuple.Tuple;
|
import reactor.fn.tuple.Tuple;
|
||||||
import reactor.rx.Streams;
|
|
||||||
|
|
||||||
import org.springframework.core.DefaultParameterNameDiscoverer;
|
import org.springframework.core.DefaultParameterNameDiscoverer;
|
||||||
import org.springframework.core.GenericTypeResolver;
|
import org.springframework.core.GenericTypeResolver;
|
||||||
|
|
@ -64,7 +63,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
|
||||||
List<Publisher<Object>> argPublishers = getMethodArguments(request, providedArgs);
|
List<Publisher<Object>> argPublishers = getMethodArguments(request, providedArgs);
|
||||||
|
|
||||||
Publisher<Object[]> argValues = (!argPublishers.isEmpty() ?
|
Publisher<Object[]> argValues = (!argPublishers.isEmpty() ?
|
||||||
Streams.zip(argPublishers, this::unwrapOptionalArgValues) :
|
Publishers.zip(argPublishers, this::unwrapOptionalArgValues) :
|
||||||
Publishers.just(new Object[0]));
|
Publishers.just(new Object[0]));
|
||||||
|
|
||||||
return Publishers.map(argValues, args -> {
|
return Publishers.map(argValues, args -> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue