Browse Source

Format PayloadInterceptorRSocket

Issue gh-9345
pull/9668/head
Josh Cummings 5 years ago
parent
commit
52b8202268
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
  1. 8
      rsocket/src/main/java/org/springframework/security/rsocket/core/PayloadInterceptorRSocket.java

8
rsocket/src/main/java/org/springframework/security/rsocket/core/PayloadInterceptorRSocket.java

@ -91,10 +91,10 @@ class PayloadInterceptorRSocket extends RSocketProxy {
public Flux<Payload> requestChannel(Publisher<Payload> payloads) { public Flux<Payload> requestChannel(Publisher<Payload> payloads) {
return Flux.from(payloads).switchOnFirst((signal, innerFlux) -> { return Flux.from(payloads).switchOnFirst((signal, innerFlux) -> {
Payload firstPayload = signal.get(); Payload firstPayload = signal.get();
return intercept(PayloadExchangeType.REQUEST_CHANNEL, firstPayload).flatMapMany((context) -> innerFlux return intercept(PayloadExchangeType.REQUEST_CHANNEL, firstPayload).flatMapMany(
.index().concatMap((tuple) -> justOrIntercept(tuple.getT1(), tuple.getT2())) (context) -> innerFlux.index().concatMap((tuple) -> justOrIntercept(tuple.getT1(), tuple.getT2()))
.transform((securedPayloads) -> this.source.requestChannel(securedPayloads)) .transform((securedPayloads) -> this.source.requestChannel(securedPayloads))
.subscriberContext(context)); .subscriberContext(context));
}); });
} }

Loading…
Cancel
Save