mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
Fix queryservice connect error (#5526)
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
This commit is contained in:
parent
fca3eb7126
commit
54ab03e28f
@ -79,6 +79,8 @@ func (c *Client) Init() error {
|
||||
log.Debug("QueryServiceClient try connect QueryService", zap.Any("c.addr", c.addr))
|
||||
if c.addr != "" {
|
||||
connectGrpcFunc := func() error {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), c.timeout)
|
||||
defer cancel()
|
||||
ctx, cancelFunc := context.WithTimeout(c.ctx, c.timeout)
|
||||
defer cancelFunc()
|
||||
log.Debug("QueryServiceClient try connect ", zap.String("address", c.addr))
|
||||
|
Loading…
Reference in New Issue
Block a user