Skip to content

Commit

Permalink
Add additional comments to onCodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hengfengli committed Jun 19, 2020
1 parent 3072acf commit 5fea553
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spanner/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ type spannerRetryer struct {
}

// onCodes returns a spannerRetryer that will retry on the specified error
// codes.
// codes. For Internal errors, only errors that have one of a list of known
// descriptions should be retried.
func onCodes(bo gax.Backoff, cc ...codes.Code) gax.Retryer {
return &spannerRetryer{
Retryer: gax.OnCodes(cc, bo),
Expand Down

0 comments on commit 5fea553

Please sign in to comment.