Skip to content

Commit

Permalink
fix(ext/flash): Fix typo in 'chunked' flash ops (denoland#17302)
Browse files Browse the repository at this point in the history
Just a `s/chuncked/chunked/g`.
  • Loading branch information
kamilogorek authored Jan 15, 2023
1 parent 7cd249d commit e4c6e6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ext/flash/01_http.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,15 +638,15 @@
});

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(),
shutdown,
);
if (nwritten > 0) {
return core.opAsync(
"op_flash_respond_chuncked",
"op_flash_respond_chunked",
serverId,
token,
chunk,
Expand All @@ -658,7 +658,7 @@

function respondChunked(token, chunk, shutdown) {
return core.opAsync(
"op_flash_respond_chuncked",
"op_flash_respond_chunked",
serverId,
token,
chunk,
Expand Down
8 changes: 4 additions & 4 deletions ext/flash/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<RefCell<OpState>>,
server_id: u32,
token: u32,
Expand Down Expand Up @@ -1522,7 +1522,7 @@ pub fn init<P: FlashPermissions + 'static>(unstable: bool) -> Extension {
op_node_unstable_flash_serve::decl::<P>(),
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(),
Expand All @@ -1538,7 +1538,7 @@ pub fn init<P: FlashPermissions + 'static>(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));
Expand Down

0 comments on commit e4c6e6e

Please sign in to comment.