Remove duplicate code

This commit is contained in:
Jarred Sumner
2021-12-19 17:31:10 -08:00
parent 81e7576150
commit ab496e9e34
3 changed files with 26 additions and 61 deletions

View File

@@ -430,8 +430,8 @@ pub const Fetch = struct {
reject: js.JSObjectRef = null,
context: FetchTaskletContext = undefined,
const Pool = ObjectPool(FetchTasklet, init);
const BodyPool = ObjectPool(MutableString, MutableString.init2048);
const Pool = ObjectPool(FetchTasklet, init, true);
const BodyPool = ObjectPool(MutableString, MutableString.init2048, true);
pub const FetchTaskletContext = struct {
tasklet: *FetchTasklet,
};