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 553dd1ee6..59be8cfdc 100644 --- a/ext/cache/lib.rs +++ b/ext/cache/lib.rs @@ -7,7 +7,6 @@ use std::sync::Arc; use async_trait::async_trait; use deno_core::error::AnyError; -use deno_core::op; use deno_core::op2; use deno_core::serde::Deserialize; use deno_core::serde::Serialize; @@ -118,10 +117,11 @@ pub trait Cache: Clone + 'static { -> Result<bool, AnyError>; } -#[op] +#[op2(async)] +#[number] pub async fn op_cache_storage_open<CA>( state: Rc<RefCell<OpState>>, - cache_name: String, + #[string] cache_name: String, ) -> Result<i64, AnyError> where CA: Cache, |