Skip to content

Commit 52b8202

Browse files
committed
Format PayloadInterceptorRSocket
Issue gh-9345
1 parent d5330a0 commit 52b8202

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ public Flux<Payload> requestStream(Payload payload) {
9191
public Flux<Payload> requestChannel(Publisher<Payload> payloads) {
9292
return Flux.from(payloads).switchOnFirst((signal, innerFlux) -> {
9393
Payload firstPayload = signal.get();
94-
return intercept(PayloadExchangeType.REQUEST_CHANNEL, firstPayload).flatMapMany((context) -> innerFlux
95-
.index().concatMap((tuple) -> justOrIntercept(tuple.getT1(), tuple.getT2()))
96-
.transform((securedPayloads) -> this.source.requestChannel(securedPayloads))
97-
.subscriberContext(context));
94+
return intercept(PayloadExchangeType.REQUEST_CHANNEL, firstPayload).flatMapMany(
95+
(context) -> innerFlux.index().concatMap((tuple) -> justOrIntercept(tuple.getT1(), tuple.getT2()))
96+
.transform((securedPayloads) -> this.source.requestChannel(securedPayloads))
97+
.subscriberContext(context));
9898
});
9999
}
100100

0 commit comments

Comments
 (0)