mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-02 18:34:29 +08:00
feat: multiple addresses
This commit is contained in:
parent
4ab677e7d8
commit
17d0d7e21f
@ -119,6 +119,8 @@ func (cm *ConnManager) GetConn(ctx context.Context, serviceName string, opts ...
|
|||||||
result = fmt.Sprintf(config2.Config.Rpc.ListenIP+":%d", addr)
|
result = fmt.Sprintf(config2.Config.Rpc.ListenIP+":%d", addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.ZDebug(ctx, "getConn address", "result", result)
|
||||||
|
log.ZDebug(ctx, "getConn address", "address", address)
|
||||||
// Try to dial a new connection
|
// Try to dial a new connection
|
||||||
conn, err := dialService(ctx, result, append(cm.additionalOpts, opts...)...)
|
conn, err := dialService(ctx, result, append(cm.additionalOpts, opts...)...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user