mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-08 19:16:35 +08:00
refactor
This commit is contained in:
@@ -21,8 +21,8 @@ type Group struct {
|
||||
c discoveryregistry.SvcDiscoveryRegistry
|
||||
}
|
||||
|
||||
func (o *Group) client() (group.GroupClient, error) {
|
||||
conn, err := o.c.GetConn(config.Config.RpcRegisterName.OpenImGroupName)
|
||||
func (o *Group) client(ctx context.Context) (group.GroupClient, error) {
|
||||
conn, err := o.c.GetConn(ctx, config.Config.RpcRegisterName.OpenImGroupName)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user