summaryrefslogtreecommitdiff
path: root/cli/ops/jupyter.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-12-23 08:58:20 -0700
committerGitHub <noreply@github.com>2023-12-23 08:58:20 -0700
commit1297c9a8f379d89691522c5cc0c6071c479e95a1 (patch)
tree7462b173b6b8106ea6255da67c265fcfd3a20c0d /cli/ops/jupyter.rs
parent36536c784ca981ae01d258d4239b2a362017d533 (diff)
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.
Diffstat (limited to 'cli/ops/jupyter.rs')
-rw-r--r--cli/ops/jupyter.rs2
1 files changed, 1 insertions, 1 deletions
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?;
}