mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
9ffc6acdbb
The optimization was missed in the optimizer rewrite https://github.com/denoland/deno/pull/16514
10 lines
297 B
Rust
10 lines
297 B
Rust
pub fn op_set_nodelay(
|
|
state: &mut OpState,
|
|
rid: ResourceId,
|
|
nodelay: bool,
|
|
) -> Result<(), AnyError> {
|
|
super::check_unstable(state, "Deno.Conn#setNoDelay");
|
|
let resource: Rc<TcpStreamResource> =
|
|
state.resource_table.get::<TcpStreamResource>(rid)?;
|
|
resource.set_nodelay(nodelay)
|
|
}
|