Clarify infinite retries example
* Clarify infinite retries example
Addresses b/158467672
* Address comments
@@ -54,5 +54,6 @@ func FiniteRetryPubSub(ctx context.Context, m PubSubMessage) error {
// processTheMessage is a stand-in for the domain logic of your function.
func processTheMessage(m PubSubMessage) error {
+ // Return an error to retry this function execution.
return fmt.Errorf("processTheMessage: runtime error")
}
