From 1a28b4f84900f84f52a87a8793921bce72816c97 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Thu, 3 Jun 2021 16:32:02 -0600 Subject: [PATCH] Format PayloadInterceptorRSocket Issue gh-9345 --- .../security/rsocket/core/PayloadInterceptorRSocket.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rsocket/src/main/java/org/springframework/security/rsocket/core/PayloadInterceptorRSocket.java b/rsocket/src/main/java/org/springframework/security/rsocket/core/PayloadInterceptorRSocket.java index 0fe8fd002d..b2ce678c09 100644 --- a/rsocket/src/main/java/org/springframework/security/rsocket/core/PayloadInterceptorRSocket.java +++ b/rsocket/src/main/java/org/springframework/security/rsocket/core/PayloadInterceptorRSocket.java @@ -91,10 +91,10 @@ class PayloadInterceptorRSocket extends RSocketProxy { public Flux requestChannel(Publisher payloads) { return Flux.from(payloads).switchOnFirst((signal, innerFlux) -> { Payload firstPayload = signal.get(); - return intercept(PayloadExchangeType.REQUEST_CHANNEL, firstPayload).flatMapMany((context) -> innerFlux - .index().concatMap((tuple) -> justOrIntercept(tuple.getT1(), tuple.getT2())) - .transform((securedPayloads) -> this.source.requestChannel(securedPayloads)) - .subscriberContext(context)); + return intercept(PayloadExchangeType.REQUEST_CHANNEL, firstPayload).flatMapMany( + (context) -> innerFlux.index().concatMap((tuple) -> justOrIntercept(tuple.getT1(), tuple.getT2())) + .transform((securedPayloads) -> this.source.requestChannel(securedPayloads)) + .subscriberContext(context)); }); }