diff options
Diffstat (limited to 'ext/cache/lib.rs')
-rw-r--r-- | ext/cache/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/cache/lib.rs b/ext/cache/lib.rs index eaf56c8b7..b5a29e905 100644 --- a/ext/cache/lib.rs +++ b/ext/cache/lib.rs @@ -32,11 +32,11 @@ deno_core::extension!(deno_cache, op_cache_delete<CA>, ], esm = [ "01_cache.js" ], - config = { + options = { maybe_create_cache: Option<CreateCache<CA>>, }, - state = |state, maybe_create_cache| { - if let Some(create_cache) = maybe_create_cache { + state = |state, options| { + if let Some(create_cache) = options.maybe_create_cache { state.put(create_cache); } }, |