mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix session util error (#5370)
Fix session util error. Signed-off-by: godchen <qingxiang.chen@zilliz.com>
This commit is contained in:
parent
3e73775cc1
commit
042a061123
@ -190,7 +190,7 @@ func (s *Session) registerService() (<-chan *clientv3.LeaseKeepAliveResponse, er
|
||||
}
|
||||
err := retry.Retry(DefaultRetryTimes, time.Millisecond*500, registerFn)
|
||||
if err != nil {
|
||||
return ch, nil
|
||||
return nil, err
|
||||
}
|
||||
return ch, nil
|
||||
}
|
||||
@ -208,9 +208,11 @@ func (s *Session) processKeepAliveResponse(ch <-chan *clientv3.LeaseKeepAliveRes
|
||||
case resp, ok := <-ch:
|
||||
if !ok {
|
||||
close(failCh)
|
||||
return
|
||||
}
|
||||
if resp == nil {
|
||||
close(failCh)
|
||||
return
|
||||
}
|
||||
failCh <- true
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user