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 /ext/fetch/22_http_client.js | |
parent | d4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff) |
refactor: use `core.ensureFastOps()` (#21888)
Diffstat (limited to 'ext/fetch/22_http_client.js')
-rw-r--r-- | ext/fetch/22_http_client.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/fetch/22_http_client.js b/ext/fetch/22_http_client.js index dd5b99bfe..b6945e674 100644 --- a/ext/fetch/22_http_client.js +++ b/ext/fetch/22_http_client.js @@ -11,8 +11,11 @@ /// <reference lib="esnext" /> import { core } from "ext:core/mod.js"; -const ops = core.ops; + import { SymbolDispose } from "ext:deno_web/00_infra.js"; +const { + op_fetch_custom_client, +} = core.ensureFastOps(); /** * @param {Deno.CreateHttpClientOptions} options @@ -21,7 +24,7 @@ import { SymbolDispose } from "ext:deno_web/00_infra.js"; function createHttpClient(options) { options.caCerts ??= []; return new HttpClient( - ops.op_fetch_custom_client( + op_fetch_custom_client( options, ), ); |