Update
This commit is contained in:
parent
ce2da7e613
commit
20e1056e62
|
@ -83,7 +83,7 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
|
||||||
() -> serializeMetadata(new DiskMetadata(metadata.size(),
|
() -> serializeMetadata(new DiskMetadata(metadata.size(),
|
||||||
BooleanArrayList.wrap(new boolean[DiskMetadata.getBlocksCount(metadata.size(), BLOCK_SIZE)])
|
BooleanArrayList.wrap(new boolean[DiskMetadata.getBlocksCount(metadata.size(), BLOCK_SIZE)])
|
||||||
))
|
))
|
||||||
), UpdateReturnMode.NOTHING)
|
).receive(), UpdateReturnMode.NOTHING)
|
||||||
.then();
|
.then();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
|
||||||
result = null;
|
result = null;
|
||||||
}
|
}
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
return serializeMetadata(result);
|
return serializeMetadata(result).receive();
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue