diff --git a/src/rpc/inc/rpcHead.h b/src/rpc/inc/rpcHead.h index 95204f72f6b825a8456c31fc6625bf6710f31209..dc0cac01435b33b98ca518ecd2314f18f70bc336 100644 --- a/src/rpc/inc/rpcHead.h +++ b/src/rpc/inc/rpcHead.h @@ -20,6 +20,7 @@ extern "C" { #endif +// server:0 client:1 tcp:2 udp:0 #define RPC_CONN_UDPS 0 #define RPC_CONN_UDPC 1 #define RPC_CONN_TCPS 2 diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index 8226620c1b5287caede2f0f5090a75ae6b31e48a..deaf30f42ebf2464ac4696b29e04b29a7e59d3e7 100644 --- a/src/rpc/src/rpcMain.c +++ b/src/rpc/src/rpcMain.c @@ -137,13 +137,6 @@ static int tsRpcRefId = -1; static int32_t tsRpcNum = 0; //static pthread_once_t tsRpcInit = PTHREAD_ONCE_INIT; -// server:0 client:1 tcp:2 udp:0 -#define RPC_CONN_UDPS 0 -#define RPC_CONN_UDPC 1 -#define RPC_CONN_TCPS 2 -#define RPC_CONN_TCPC 3 -#define RPC_CONN_TCP 2 - void *(*taosInitConn[])(uint32_t ip, uint16_t port, char *label, int threads, void *fp, void *shandle) = { taosInitUdpConnection, taosInitUdpConnection,