Send buffer
This commit is contained in:
parent
a2e89d2acd
commit
29cd7e7820
@ -182,7 +182,7 @@ public class DiskCache implements URLsDiskHandler, URLsWriter {
|
|||||||
try (var urlBytes = url.getSerializer(db.getAllocator()).serialize(url).receive()) {
|
try (var urlBytes = url.getSerializer(db.getAllocator()).serialize(url).receive()) {
|
||||||
Buffer blockIdBytes = this.db.getAllocator().allocate(Integer.BYTES);
|
Buffer blockIdBytes = this.db.getAllocator().allocate(Integer.BYTES);
|
||||||
blockIdBytes.writeInt(blockId);
|
blockIdBytes.writeInt(blockId);
|
||||||
return LLUtils.compositeBuffer(db.getAllocator(), urlBytes.send(), blockIdBytes.send());
|
return LLUtils.compositeBuffer(db.getAllocator(), urlBytes.send(), blockIdBytes.send()).send();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user