diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-10-25 13:43:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 13:43:38 +0200 |
commit | 093b3eee58181ec45839d0fe10b8157326a102b2 (patch) | |
tree | 33f1cb35bfef7a85335d46ca7cb055459c20d637 /ext/node/ops/http2.rs | |
parent | 6c60859407a39e579a9f7101b254c874af85ca68 (diff) |
chore: update deno_core and port all remaining ops to `op2` (#20954)
Signed-off-by: Matt Mastracci <matthew@mastracci.com>
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/node/ops/http2.rs')
-rw-r--r-- | ext/node/ops/http2.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/node/ops/http2.rs b/ext/node/ops/http2.rs index e0dfa1396..676ef7e6e 100644 --- a/ext/node/ops/http2.rs +++ b/ext/node/ops/http2.rs @@ -9,7 +9,6 @@ use std::task::Poll; use bytes::Bytes; use deno_core::error::AnyError; use deno_core::futures::future::poll_fn; -use deno_core::op; use deno_core::op2; use deno_core::serde::Serialize; use deno_core::AsyncRefCell; @@ -157,10 +156,11 @@ pub async fn op_http2_listen( ) } -#[op] +#[op2(async)] +#[serde] pub async fn op_http2_accept( state: Rc<RefCell<OpState>>, - rid: ResourceId, + #[smi] rid: ResourceId, ) -> Result< Option<(Vec<(ByteString, ByteString)>, ResourceId, ResourceId)>, AnyError, |