Upgrade to Reactor Core 3.1
Issue: SPR-15318
This commit is contained in:
@@ -85,7 +85,7 @@ public class ResourceRegionEncoder extends AbstractEncoder<ResourceRegion> {
|
||||
|
||||
if (inputStream instanceof Mono) {
|
||||
return ((Mono<? extends ResourceRegion>) inputStream)
|
||||
.flatMap(region -> writeResourceRegion(region, bufferFactory));
|
||||
.flatMapMany(region -> writeResourceRegion(region, bufferFactory));
|
||||
}
|
||||
else {
|
||||
Assert.notNull(hints, "'hints' must not be null");
|
||||
|
||||
@@ -114,7 +114,7 @@ public abstract class DataBufferUtils {
|
||||
ByteBuffer byteBuffer = ByteBuffer.allocate(bufferSize);
|
||||
|
||||
return Flux.create(emitter -> {
|
||||
emitter.setCancellation(() -> closeChannel(channel));
|
||||
emitter.onDispose(() -> closeChannel(channel));
|
||||
AsynchronousFileChannelCompletionHandler completionHandler =
|
||||
new AsynchronousFileChannelCompletionHandler(emitter, position,
|
||||
dataBufferFactory, byteBuffer);
|
||||
|
||||
Reference in New Issue
Block a user