summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorYusuke Tanaka <yusuktan@maguro.dev>2024-08-27 16:30:19 +0900
committerGitHub <noreply@github.com>2024-08-27 00:30:19 -0700
commit9b4026563c38309229fcf802650fbd50436c70d8 (patch)
tree4407c6bafdc093e7b65eabb124af0f9ba7f5063f /runtime/worker.rs
parentc89a20b42899abff5c3ea84660c8110806c5fbee (diff)
feat(ext/kv): configurable limit params (#25174)
This commit makes various limit parameters in `deno_kv` configurable. Currently these values are declared as constants and thus can't be modified from outside. However, there may be situations where we want to change it. This commit makes this possible by introducing a new struct `KvConfig` that needs to be given as the 2nd param in `init_ops`.
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index c1c918d08..c0d839166 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -404,6 +404,7 @@ impl MainWorker {
proxy: None,
},
),
+ deno_kv::KvConfig::builder().build(),
),
deno_cron::deno_cron::init_ops_and_esm(LocalCronHandler::new()),
deno_napi::deno_napi::init_ops_and_esm::<PermissionsContainer>(),