diff options
Diffstat (limited to 'ext/websocket')
-rw-r--r-- | ext/websocket/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs index 32e2d18cc..4b05131d9 100644 --- a/ext/websocket/lib.rs +++ b/ext/websocket/lib.rs @@ -5,7 +5,6 @@ use deno_core::error::invalid_hostname; use deno_core::error::type_error; use deno_core::error::AnyError; use deno_core::op; -use deno_core::op2; use deno_core::url; use deno_core::AsyncMutFuture; use deno_core::AsyncRefCell; @@ -529,12 +528,12 @@ pub async fn op_ws_send_ping( .await } -#[op2(async(lazy))] +#[op(deferred)] pub async fn op_ws_close( state: Rc<RefCell<OpState>>, - #[smi] rid: ResourceId, + rid: ResourceId, code: Option<u16>, - #[string] reason: Option<String>, + reason: Option<String>, ) -> Result<(), AnyError> { let resource = state .borrow_mut() |