client: Clarify that WaitForReady will block for CONNECTING channels (#4477)

This commit is contained in:
Evan Jones
2021-06-01 11:54:43 -04:00
committed by GitHub
parent 2de42fcbbc
commit 8bdcb4c9ab

View File

@ -258,7 +258,8 @@ func (o PeerCallOption) after(c *callInfo, attempt *csAttempt) {
}
// WaitForReady configures the action to take when an RPC is attempted on broken
// connections or unreachable servers. If waitForReady is false, the RPC will fail
// connections or unreachable servers. If waitForReady is false and the
// connection is in the TRANSIENT_FAILURE state, the RPC will fail
// immediately. Otherwise, the RPC client will block the call until a
// connection is available (or the call is canceled or times out) and will
// retry the call if it fails due to a transient error. gRPC will not retry if