From aa6892179f406751a8a8df9118878e4e6cd6bc6f Mon Sep 17 00:00:00 2001 From: Yuxuan 'fishy' Wang Date: Thu, 18 Jun 2020 10:39:29 -0700 Subject: [PATCH] retrybp: Minor doc comment fix for retrybp.Do --- retrybp/retry.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/retrybp/retry.go b/retrybp/retry.go index 8ab7cc0ed..f1d9f9c4b 100644 --- a/retrybp/retry.go +++ b/retrybp/retry.go @@ -40,10 +40,11 @@ func GetOptions(ctx context.Context) (options []retry.Option, ok bool) { // The changes this has compared to retry.Do are: // // 1. Pulling options from the context. This allows it to be used in middleware -// where you are not calling Do directly but still want to be able to -// configure retry behavior per-call. +// where you are not calling Do directly but still want to be able to configure +// retry behavior per-call. +// // 2. If retry.Do returns a batch of errors (retry.Error), put those in a -// errorsbp.Batch from baseplate.go. +// errorsbp.Batch from baseplate.go. func Do(ctx context.Context, fn func() error, defaults ...retry.Option) error { options, _ := GetOptions(ctx) options = append(defaults, options...)