diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2024-01-11 07:37:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 15:37:25 -0700 |
commit | 515a34b4de222e35c7ade1b92614d746e73d4c2e (patch) | |
tree | 8284201fc826a33f12597959a8a8be14e0f524bd /runtime/js/40_http.js | |
parent | d4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff) |
refactor: use `core.ensureFastOps()` (#21888)
Diffstat (limited to 'runtime/js/40_http.js')
-rw-r--r-- | runtime/js/40_http.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/js/40_http.js b/runtime/js/40_http.js index 6ec8f4314..d38caa55d 100644 --- a/runtime/js/40_http.js +++ b/runtime/js/40_http.js @@ -1,10 +1,13 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import { core } from "ext:core/mod.js"; -const ops = core.ops; +const { + op_http_start, +} = core.ensureFastOps(); + import { HttpConn } from "ext:deno_http/01_http.js"; function serveHttp(conn) { - const rid = ops.op_http_start(conn.rid); + const rid = op_http_start(conn.rid); return new HttpConn(rid, conn.remoteAddr, conn.localAddr); } |