From f32e7ddf88a024b5b2ea9b5d4d6724ee5eaea364 Mon Sep 17 00:00:00 2001 From: Yingchun Lai Date: Mon, 8 Jul 2024 16:15:07 +0800 Subject: [PATCH] nodejs --- nodejs-client/src/dsn/dsn_types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs-client/src/dsn/dsn_types.js b/nodejs-client/src/dsn/dsn_types.js index d7e1a32501..4f2ef0a6f0 100644 --- a/nodejs-client/src/dsn/dsn_types.js +++ b/nodejs-client/src/dsn/dsn_types.js @@ -257,12 +257,12 @@ rpc_address.prototype.equals = function(other){ }; // TODO(yingchun): host_port is now just a place holder and not well implemented, need improve it -// Error code enum var host_port_type = { HOST_TYPE_INVALID : 0, HOST_TYPE_IPV4 : 1, HOST_TYPE_GROUP : 2 }; + var host_port = function(args) { this.host = null; this.port = 0;