From b4d994113ea0d15d271a555ad5072b0606c4ad0d Mon Sep 17 00:00:00 2001 From: AndrewZuo01 Date: Mon, 15 Jan 2024 19:50:05 +0800 Subject: [PATCH] fix: direct conn cannot find name --- pkg/rpcclient/user.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/rpcclient/user.go b/pkg/rpcclient/user.go index 451914cd3..5cb3e6663 100644 --- a/pkg/rpcclient/user.go +++ b/pkg/rpcclient/user.go @@ -16,6 +16,7 @@ package rpcclient import ( "context" + "fmt" "strings" "github.com/openimsdk/open-im-server/v3/pkg/authverify" @@ -40,6 +41,7 @@ type User struct { // NewUser initializes and returns a User instance based on the provided service discovery registry. func NewUser(discov discoveryregistry.SvcDiscoveryRegistry) *User { + fmt.Println("user name ", config.Config.RpcRegisterName.OpenImUserName) conn, err := discov.GetConn(context.Background(), config.Config.RpcRegisterName.OpenImUserName) if err != nil { panic(err)