mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +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 {
|
||||
select {
|
||||
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:
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user