mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 08:39:09 -05:00
perf(http): avoid Set.has() when closing connection resource (#14085)
This commit is contained in:
parent
7feb25d448
commit
5edcd9dd35
1 changed files with 1 additions and 3 deletions
|
@ -42,7 +42,6 @@
|
||||||
Set,
|
Set,
|
||||||
SetPrototypeAdd,
|
SetPrototypeAdd,
|
||||||
SetPrototypeDelete,
|
SetPrototypeDelete,
|
||||||
SetPrototypeHas,
|
|
||||||
SetPrototypeValues,
|
SetPrototypeValues,
|
||||||
StringPrototypeIncludes,
|
StringPrototypeIncludes,
|
||||||
StringPrototypeToLowerCase,
|
StringPrototypeToLowerCase,
|
||||||
|
@ -354,8 +353,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
if (SetPrototypeHas(httpConn.managedResources, streamRid)) {
|
if (SetPrototypeDelete(httpConn.managedResources, streamRid)) {
|
||||||
SetPrototypeDelete(httpConn.managedResources, streamRid);
|
|
||||||
core.close(streamRid);
|
core.close(streamRid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue