mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-07 18:45:58 +08:00
conn
This commit is contained in:
@@ -13,11 +13,11 @@ import (
|
||||
)
|
||||
|
||||
func NewFriend(discov discoveryregistry.SvcDiscoveryRegistry) *Friend {
|
||||
conn, err := discov.GetConn(context.Background(), config.Config.RpcRegisterName.OpenImFriendName)
|
||||
if err != nil {
|
||||
// panic(err)
|
||||
}
|
||||
return &Friend{conn: conn, discov: discov}
|
||||
// conn, err := discov.GetConn(context.Background(), config.Config.RpcRegisterName.OpenImFriendName)
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
return &Friend{discov: discov}
|
||||
}
|
||||
|
||||
type Friend struct {
|
||||
|
||||
Reference in New Issue
Block a user