Update after changed method in Reactor Core
This commit is contained in:
parent
7c84266259
commit
6f075c9060
|
|
@ -113,7 +113,7 @@ public abstract class DataBufferUtils {
|
|||
ByteBuffer byteBuffer = ByteBuffer.allocate(bufferSize);
|
||||
|
||||
return Flux.create(emitter -> {
|
||||
emitter.onDispose(() -> closeChannel(channel));
|
||||
emitter.setCancellation(() -> closeChannel(channel));
|
||||
AsynchronousFileChannelCompletionHandler completionHandler =
|
||||
new AsynchronousFileChannelCompletionHandler(emitter, position,
|
||||
dataBufferFactory, byteBuffer);
|
||||
|
|
|
|||
Loading…
Reference in New Issue