Send buffer

This commit is contained in:
Andrea Cavalli 2021-09-23 12:05:02 +02:00
parent a2e89d2acd
commit 29cd7e7820

View File

@ -182,7 +182,7 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
try (var urlBytes = url.getSerializer(db.getAllocator()).serialize(url).receive()) {
Buffer blockIdBytes = this.db.getAllocator().allocate(Integer.BYTES);
blockIdBytes.writeInt(blockId);
return LLUtils.compositeBuffer(db.getAllocator(), urlBytes.send(), blockIdBytes.send());
return LLUtils.compositeBuffer(db.getAllocator(), urlBytes.send(), blockIdBytes.send()).send();
}
}