mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Propagate task ctx done err for proxy (#27892)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
parent
b56a944289
commit
977e508a0f
@ -42,7 +42,7 @@ type TaskCondition struct {
|
|||||||
func (tc *TaskCondition) WaitToFinish() error {
|
func (tc *TaskCondition) WaitToFinish() error {
|
||||||
select {
|
select {
|
||||||
case <-tc.ctx.Done():
|
case <-tc.ctx.Done():
|
||||||
return errors.New("proxy TaskCondition context Done")
|
return errors.Wrap(tc.ctx.Err(), "proxy TaskCondition context Done")
|
||||||
case err := <-tc.done:
|
case err := <-tc.done:
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user