This commit is contained in:
Andrea Cavalli 2021-11-08 16:34:04 +01:00
parent ce2da7e613
commit 20e1056e62

View File

@ -83,7 +83,7 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
() -> serializeMetadata(new DiskMetadata(metadata.size(),
BooleanArrayList.wrap(new boolean[DiskMetadata.getBlocksCount(metadata.size(), BLOCK_SIZE)])
))
), UpdateReturnMode.NOTHING)
).receive(), UpdateReturnMode.NOTHING)
.then();
}
@ -164,7 +164,7 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
result = null;
}
if (result != null) {
return serializeMetadata(result);
return serializeMetadata(result).receive();
} else {
return null;
}