Propagate Context in DataBufferUtils::write(Path)
This commit makes sure that the Reactor context is propagated in DataBufferUtils::write(Path). Closes gh-28933 See gh-27517
This commit is contained in:
@@ -366,7 +366,8 @@ public abstract class DataBufferUtils {
|
||||
sink.onDispose(() -> closeChannel(channel));
|
||||
write(source, channel).subscribe(DataBufferUtils::release,
|
||||
sink::error,
|
||||
sink::success);
|
||||
sink::success,
|
||||
Context.of(sink.contextView()));
|
||||
}
|
||||
catch (IOException ex) {
|
||||
sink.error(ex);
|
||||
|
||||
Reference in New Issue
Block a user