From 99de4f8a7e04ffa8159277c365fd4f3c019bc32a Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 13 Jul 2023 20:05:39 +0800 Subject: [PATCH] fix bug: init conn once --- pkg/rpcclient/msg.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/rpcclient/msg.go b/pkg/rpcclient/msg.go index 0559e7e3e..09e44884f 100644 --- a/pkg/rpcclient/msg.go +++ b/pkg/rpcclient/msg.go @@ -131,10 +131,6 @@ func NewMessage(discov discoveryregistry.SvcDiscoveryRegistry) *Message { panic(err) } client := msg.NewMsgClient(conn) - conn, err = discov.GetConn(context.Background(), config.Config.RpcRegisterName.OpenImUserName) - if err != nil { - panic(err) - } return &Message{discov: discov, conn: conn, Client: client} }