diff options
| author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-04-02 15:47:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-02 09:47:57 -0400 |
| commit | 058579da562989ed15c86598053644bbc86c6747 (patch) | |
| tree | 7f0f2bf30684dcbb350b93d987771f17a4abd250 /runtime/ops/tls.rs | |
| parent | adf57610904cb4f4ef25fb077f6e39c9017a4ea9 (diff) | |
refactor(ops): remove variadic buffers (#9944)
Diffstat (limited to 'runtime/ops/tls.rs')
| -rw-r--r-- | runtime/ops/tls.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/ops/tls.rs b/runtime/ops/tls.rs index 52c9d322a..00f000a97 100644 --- a/runtime/ops/tls.rs +++ b/runtime/ops/tls.rs @@ -14,7 +14,6 @@ use deno_core::error::AnyError; use deno_core::serde_json::json; use deno_core::serde_json::Value; use deno_core::AsyncRefCell; -use deno_core::BufVec; use deno_core::CancelHandle; use deno_core::CancelTryFuture; use deno_core::OpState; @@ -97,7 +96,7 @@ struct StartTlsArgs { async fn op_start_tls( state: Rc<RefCell<OpState>>, args: StartTlsArgs, - _zero_copy: BufVec, + _zero_copy: Option<ZeroCopyBuf>, ) -> Result<Value, AnyError> { let rid = args.rid; @@ -167,7 +166,7 @@ async fn op_start_tls( async fn op_connect_tls( state: Rc<RefCell<OpState>>, args: ConnectTlsArgs, - _zero_copy: BufVec, + _zero_copy: Option<ZeroCopyBuf>, ) -> Result<Value, AnyError> { { let s = state.borrow(); @@ -307,7 +306,7 @@ pub struct ListenTlsArgs { fn op_listen_tls( state: &mut OpState, args: ListenTlsArgs, - _zero_copy: &mut [ZeroCopyBuf], + _zero_copy: Option<ZeroCopyBuf>, ) -> Result<Value, AnyError> { assert_eq!(args.transport, "tcp"); @@ -357,7 +356,7 @@ pub struct AcceptTlsArgs { async fn op_accept_tls( state: Rc<RefCell<OpState>>, args: AcceptTlsArgs, - _zero_copy: BufVec, + _zero_copy: Option<ZeroCopyBuf>, ) -> Result<Value, AnyError> { let rid = args.rid; |
