mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
fix(ext/flash): Fix typo in 'chunked' flash ops (#17302)
Just a `s/chuncked/chunked/g`.
This commit is contained in:
parent
7cd249db10
commit
e4c6e6e95f
2 changed files with 7 additions and 7 deletions
|
@ -638,7 +638,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
function tryRespondChunked(token, chunk, shutdown) {
|
function tryRespondChunked(token, chunk, shutdown) {
|
||||||
const nwritten = core.ops.op_try_flash_respond_chuncked(
|
const nwritten = core.ops.op_try_flash_respond_chunked(
|
||||||
serverId,
|
serverId,
|
||||||
token,
|
token,
|
||||||
chunk ?? new Uint8Array(),
|
chunk ?? new Uint8Array(),
|
||||||
|
@ -646,7 +646,7 @@
|
||||||
);
|
);
|
||||||
if (nwritten > 0) {
|
if (nwritten > 0) {
|
||||||
return core.opAsync(
|
return core.opAsync(
|
||||||
"op_flash_respond_chuncked",
|
"op_flash_respond_chunked",
|
||||||
serverId,
|
serverId,
|
||||||
token,
|
token,
|
||||||
chunk,
|
chunk,
|
||||||
|
@ -658,7 +658,7 @@
|
||||||
|
|
||||||
function respondChunked(token, chunk, shutdown) {
|
function respondChunked(token, chunk, shutdown) {
|
||||||
return core.opAsync(
|
return core.opAsync(
|
||||||
"op_flash_respond_chuncked",
|
"op_flash_respond_chunked",
|
||||||
serverId,
|
serverId,
|
||||||
token,
|
token,
|
||||||
chunk,
|
chunk,
|
||||||
|
|
|
@ -107,7 +107,7 @@ fn op_flash_respond(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[op(fast)]
|
#[op(fast)]
|
||||||
fn op_try_flash_respond_chuncked(
|
fn op_try_flash_respond_chunked(
|
||||||
op_state: &mut OpState,
|
op_state: &mut OpState,
|
||||||
server_id: u32,
|
server_id: u32,
|
||||||
token: u32,
|
token: u32,
|
||||||
|
@ -184,7 +184,7 @@ async fn op_flash_respond_async(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[op]
|
#[op]
|
||||||
async fn op_flash_respond_chuncked(
|
async fn op_flash_respond_chunked(
|
||||||
op_state: Rc<RefCell<OpState>>,
|
op_state: Rc<RefCell<OpState>>,
|
||||||
server_id: u32,
|
server_id: u32,
|
||||||
token: u32,
|
token: u32,
|
||||||
|
@ -1522,7 +1522,7 @@ pub fn init<P: FlashPermissions + 'static>(unstable: bool) -> Extension {
|
||||||
op_node_unstable_flash_serve::decl::<P>(),
|
op_node_unstable_flash_serve::decl::<P>(),
|
||||||
op_flash_respond::decl(),
|
op_flash_respond::decl(),
|
||||||
op_flash_respond_async::decl(),
|
op_flash_respond_async::decl(),
|
||||||
op_flash_respond_chuncked::decl(),
|
op_flash_respond_chunked::decl(),
|
||||||
op_flash_method::decl(),
|
op_flash_method::decl(),
|
||||||
op_flash_path::decl(),
|
op_flash_path::decl(),
|
||||||
op_flash_headers::decl(),
|
op_flash_headers::decl(),
|
||||||
|
@ -1538,7 +1538,7 @@ pub fn init<P: FlashPermissions + 'static>(unstable: bool) -> Extension {
|
||||||
op_flash_close_server::decl(),
|
op_flash_close_server::decl(),
|
||||||
op_flash_make_request::decl(),
|
op_flash_make_request::decl(),
|
||||||
op_flash_write_resource::decl(),
|
op_flash_write_resource::decl(),
|
||||||
op_try_flash_respond_chuncked::decl(),
|
op_try_flash_respond_chunked::decl(),
|
||||||
])
|
])
|
||||||
.state(move |op_state| {
|
.state(move |op_state| {
|
||||||
op_state.put(Unstable(unstable));
|
op_state.put(Unstable(unstable));
|
||||||
|
|
Loading…
Reference in a new issue