Closed devosnw closed 2 years ago
Gonna close this actually. I understand better what's going on here. I still don't love the original comments but mine aren't good either. err == nil
is what will generally happen when using DefaultRetryPolicy
and the below case is what will happen when using ErrorPropagatedRetryPolicy
Lemme know if this make more sense. I don't think this comment was entirely accurate.
I think we can only get to this block if we've had no errors (from
Do
andCheckRetry
) but somehow we still wanted to retry.