File tree 1 file changed +3
-5
lines changed
spring-web/src/main/java/org/springframework/http/server/reactive
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,9 @@ protected Mono<Void> writeWithInternal(Publisher<DataBuffer> body) {
82
82
protected Mono <Void > writeAndFlushWithInternal (
83
83
Publisher <Publisher <DataBuffer >> body ) {
84
84
Flux <ByteBuf > bodyWithFlushSignals = Flux .from (body ).
85
- flatMap (publisher -> {
86
- return Flux .from (publisher ).
87
- map (NettyDataBufferFactory ::toByteBuf ).
88
- concatWith (Mono .just (FLUSH_SIGNAL ));
89
- });
85
+ flatMap (publisher -> Flux .from (publisher ).
86
+ map (NettyDataBufferFactory ::toByteBuf ).
87
+ concatWith (Mono .just (FLUSH_SIGNAL )));
90
88
Observable <ByteBuf > content = RxJava1Adapter .publisherToObservable (bodyWithFlushSignals );
91
89
ResponseContentWriter <ByteBuf > writer = this .response .write (content , bb -> bb == FLUSH_SIGNAL );
92
90
return RxJava1Adapter .observableToFlux (writer ).then ();
You can’t perform that action at this time.
0 commit comments