Polishing

This commit is contained in:
Sam Brannen
2021-05-12 11:31:15 +02:00
parent 4809632f44
commit e31a4c4c77
3 changed files with 6 additions and 5 deletions

View File

@@ -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);

View File

@@ -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);