Propagate task ctx done err for proxy (#27892)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
pull/27968/head
shaoyue 2023-10-26 19:06:13 +08:00 committed by GitHub
parent b56a944289
commit 977e508a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}