This commit is contained in:
Andrea Cavalli 2021-09-04 16:45:21 +02:00
parent 00a5323913
commit 4e20856317

View File

@ -214,9 +214,9 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
key -> fileMetadata.get(null, urlKeyMono),
Send::close
)
.map(diskMetadataSerializer::deserialize)
.map(DeserializationResult::deserializedData)
.map(diskMeta -> {
.map(serialized -> {
var diskMetadataDeserializationResult = diskMetadataSerializer.deserialize(serialized);
var diskMeta = diskMetadataDeserializationResult.deserializedData();
var meta = diskMeta.asMetadata();
if (diskMeta.isDownloadedFully()) {
return Tuples.of(meta, this.requestContent(url));