Skip to content

Commit

Permalink
picker_wrapper: simplify picker error when timing out waiting for con… (
Browse files Browse the repository at this point in the history
  • Loading branch information
purnesh42H authored Jan 28, 2025
1 parent 9d4fa67 commit cf9e380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picker_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer.
if lastPickErr != nil {
errStr = "latest balancer error: " + lastPickErr.Error()
} else {
errStr = fmt.Sprintf("received context error while waiting for new LB policy update: %s", ctx.Err().Error())
errStr = fmt.Sprintf("%v while waiting for connections to become ready", ctx.Err())
}
switch ctx.Err() {
case context.DeadlineExceeded:
Expand Down

0 comments on commit cf9e380

Please sign in to comment.