Error code standardization

This commit is contained in:
skiffer-git
2023-02-14 12:06:58 +08:00
parent 731112e61b
commit 9eb0ee55f3
4 changed files with 42 additions and 8 deletions
+4
View File
@@ -12,6 +12,10 @@ type MsgCheck struct {
zk discoveryRegistry.SvcDiscoveryRegistry
}
func NewMsgCheck(zk discoveryRegistry.SvcDiscoveryRegistry) *MsgCheck {
return &MsgCheck{zk: zk}
}
func (m *MsgCheck) getConn() (*grpc.ClientConn, error) {
return m.zk.GetConn(config.Config.RpcRegisterName.OpenImMsgName)
}