From 41be6a2de4c958667db1cdc7e30ee470b8de7798 Mon Sep 17 00:00:00 2001 From: guzeng Date: Mon, 13 Dec 2021 15:47:52 +0800 Subject: [PATCH] debug --- conn.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conn.go b/conn.go index d4e7d2e..4e56993 100644 --- a/conn.go +++ b/conn.go @@ -1,6 +1,7 @@ package redisrpc import ( + "log" "net/rpc" "git.tetele.net/tgo/conf" @@ -8,6 +9,8 @@ import ( func Conn(url ...string) (*RedisServiceClient, *rpc.Client, error) { + log.Println("conn redis rpc server========", url) + var rpc_url string if len(url) > 0 && url[0] != "" { rpc_url = url[0] @@ -17,6 +20,8 @@ func Conn(url ...string) (*RedisServiceClient, *rpc.Client, error) { rpc_url = "127.0.0.1:" + conf.REDIS_RPC_PORT } + log.Println("rpc_url", rpc_url) + return DialRedisService("tcp", rpc_url) }