Polishing
This commit is contained in:
@@ -59,8 +59,8 @@ abstract class FileStorage {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new {@code FileStorage} based a on a temporary directory.
|
||||
* @param scheduler scheduler to use for blocking operations
|
||||
* Create a new {@code FileStorage} based on a temporary directory.
|
||||
* @param scheduler the scheduler to use for blocking operations
|
||||
*/
|
||||
public static FileStorage tempDirectory(Supplier<Scheduler> scheduler) {
|
||||
return new TempFileStorage(scheduler);
|
||||
|
||||
@@ -470,6 +470,7 @@ public class SynchronossPartHttpMessageReader extends LoggingCodecSupport implem
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("resource")
|
||||
public Flux<DataBuffer> content() {
|
||||
return DataBufferUtils.readInputStream(
|
||||
getStorage()::getInputStream, DefaultDataBufferFactory.sharedInstance, 4096);
|
||||
|
||||
Reference in New Issue
Block a user