From 1297c9a8f379d89691522c5cc0c6071c479e95a1 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sat, 23 Dec 2023 08:58:20 -0700 Subject: chore(ext/node): use BufView natively in http2 (#21688) Node HTTP/2 was using the default h2 `Bytes` datatype when we can be making using of `BufView` like we do in `Deno.serve`. `fetch` and `Deno.serverHttp` can't make use of `BufView` because they are using `reqwest` which is stuck on hyper 0.x at this time. --- cli/ops/jupyter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/ops/jupyter.rs b/cli/ops/jupyter.rs index f63edebe8..7d12cb159 100644 --- a/cli/ops/jupyter.rs +++ b/cli/ops/jupyter.rs @@ -55,7 +55,7 @@ pub async fn op_jupyter_broadcast( .new_message(&message_type) .with_content(content) .with_metadata(metadata) - .with_buffers(buffers.into_iter().map(|b| b.into()).collect()) + .with_buffers(buffers.into_iter().map(|b| b.to_vec().into()).collect()) .send(&mut *iopub_socket.lock().await) .await?; } -- cgit v1.2.3