From e4c6e6e95f626b1ce8601f48344a76045f2d6479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Og=C3=B3rek?= Date: Sun, 15 Jan 2023 04:34:29 +0100 Subject: [PATCH] fix(ext/flash): Fix typo in 'chunked' flash ops (#17302) Just a `s/chuncked/chunked/g`. --- ext/flash/01_http.js | 6 +++--- ext/flash/lib.rs | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ext/flash/01_http.js b/ext/flash/01_http.js index e76f4de528..ce18c2b764 100644 --- a/ext/flash/01_http.js +++ b/ext/flash/01_http.js @@ -638,7 +638,7 @@ }); function tryRespondChunked(token, chunk, shutdown) { - const nwritten = core.ops.op_try_flash_respond_chuncked( + const nwritten = core.ops.op_try_flash_respond_chunked( serverId, token, chunk ?? new Uint8Array(), @@ -646,7 +646,7 @@ ); if (nwritten > 0) { return core.opAsync( - "op_flash_respond_chuncked", + "op_flash_respond_chunked", serverId, token, chunk, @@ -658,7 +658,7 @@ function respondChunked(token, chunk, shutdown) { return core.opAsync( - "op_flash_respond_chuncked", + "op_flash_respond_chunked", serverId, token, chunk, diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 2e2417892a..a37a436411 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -107,7 +107,7 @@ fn op_flash_respond( } #[op(fast)] -fn op_try_flash_respond_chuncked( +fn op_try_flash_respond_chunked( op_state: &mut OpState, server_id: u32, token: u32, @@ -184,7 +184,7 @@ async fn op_flash_respond_async( } #[op] -async fn op_flash_respond_chuncked( +async fn op_flash_respond_chunked( op_state: Rc>, server_id: u32, token: u32, @@ -1522,7 +1522,7 @@ pub fn init(unstable: bool) -> Extension { op_node_unstable_flash_serve::decl::

(), op_flash_respond::decl(), op_flash_respond_async::decl(), - op_flash_respond_chuncked::decl(), + op_flash_respond_chunked::decl(), op_flash_method::decl(), op_flash_path::decl(), op_flash_headers::decl(), @@ -1538,7 +1538,7 @@ pub fn init(unstable: bool) -> Extension { op_flash_close_server::decl(), op_flash_make_request::decl(), op_flash_write_resource::decl(), - op_try_flash_respond_chuncked::decl(), + op_try_flash_respond_chunked::decl(), ]) .state(move |op_state| { op_state.put(Unstable(unstable));