mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-12 04:55:59 +08:00
conn
This commit is contained in:
+5
-5
@@ -22,11 +22,11 @@ import (
|
||||
)
|
||||
|
||||
func NewMsg(discov discoveryregistry.SvcDiscoveryRegistry) *Message {
|
||||
conn, err := discov.GetConn(context.Background(), config.Config.RpcRegisterName.OpenImMsgName)
|
||||
if err != nil {
|
||||
// panic(err)
|
||||
}
|
||||
return &Message{conn: conn, validate: validator.New(), discov: discov}
|
||||
// conn, err := discov.GetConn(context.Background(), config.Config.RpcRegisterName.OpenImMsgName)
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
return &Message{validate: validator.New(), discov: discov}
|
||||
}
|
||||
|
||||
type Message struct {
|
||||
|
||||
Reference in New Issue
Block a user