diff --git a/ext/net/01_net.js b/ext/net/01_net.js index 971ec2e8bf..f25904e80d 100644 --- a/ext/net/01_net.js +++ b/ext/net/01_net.js @@ -100,12 +100,12 @@ } class TcpConn extends Conn { - setNoDelay(nodelay = true) { - return ops.op_set_nodelay(this.rid, nodelay); + setNoDelay(noDelay = true) { + return ops.op_set_nodelay(this.rid, noDelay); } - setKeepAlive(keepalive = true) { - return ops.op_set_keepalive(this.rid, keepalive); + setKeepAlive(keepAlive = true) { + return ops.op_set_keepalive(this.rid, keepAlive); } } diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index e8dd5a9575..639d0f8af0 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -185,19 +185,13 @@ declare namespace Deno { /** @category Network */ export interface TcpConn extends Conn { /** - * **UNSTABLE**: new API, see https://github.com/denoland/deno/issues/13617. - * * Enable/disable the use of Nagle's algorithm. * - * @param [nodelay=true] + * @param [noDelay=true] */ - setNoDelay(nodelay?: boolean): void; - /** - * **UNSTABLE**: new API, see https://github.com/denoland/deno/issues/13617. - * - * Enable/disable keep-alive functionality. - */ - setKeepAlive(keepalive?: boolean): void; + setNoDelay(noDelay?: boolean): void; + /** Enable/disable keep-alive functionality. */ + setKeepAlive(keepAlive?: boolean): void; } /** @category Network */ diff --git a/ext/net/ops.rs b/ext/net/ops.rs index e567c31885..48db797457 100644 --- a/ext/net/ops.rs +++ b/ext/net/ops.rs @@ -514,7 +514,6 @@ pub fn op_set_nodelay( rid: ResourceId, nodelay: bool, ) -> Result<(), AnyError> { - super::check_unstable(state, "Deno.Conn#setNoDelay"); let resource: Rc = state.resource_table.get::(rid)?; resource.set_nodelay(nodelay) @@ -526,7 +525,6 @@ pub fn op_set_keepalive( rid: ResourceId, keepalive: bool, ) -> Result<(), AnyError> { - super::check_unstable(state, "Deno.Conn#setKeepAlive"); let resource: Rc = state.resource_table.get::(rid)?; resource.set_keepalive(keepalive) diff --git a/ops/optimizer_tests/unit_result2.out b/ops/optimizer_tests/unit_result2.out index 87e0ee0b56..e297befcb7 100644 --- a/ops/optimizer_tests/unit_result2.out +++ b/ops/optimizer_tests/unit_result2.out @@ -36,7 +36,6 @@ impl op_set_nodelay { rid: ResourceId, nodelay: bool, ) -> Result<(), AnyError> { - super::check_unstable(state, "Deno.Conn#setNoDelay"); let resource: Rc = state .resource_table .get::(rid)?; diff --git a/ops/optimizer_tests/unit_result2.rs b/ops/optimizer_tests/unit_result2.rs index d3e8ced6a3..83b73e1948 100644 --- a/ops/optimizer_tests/unit_result2.rs +++ b/ops/optimizer_tests/unit_result2.rs @@ -3,7 +3,6 @@ pub fn op_set_nodelay( rid: ResourceId, nodelay: bool, ) -> Result<(), AnyError> { - super::check_unstable(state, "Deno.Conn#setNoDelay"); let resource: Rc = state.resource_table.get::(rid)?; resource.set_nodelay(nodelay)