fasthttp icon indicating copy to clipboard operation
fasthttp copied to clipboard

Propagate request error to RetryIfFunc

Open TAYTS opened this issue 1 year ago • 1 comments

Hi may I check is it possible to change the interface for the RetryIfFunc to pass the error for better retry strategy?

TAYTS avatar Apr 01 '24 00:04 TAYTS

There is no way to do this without breaking backwards compatibility. Maybe it would work if next to RetryIf we added a RetryIfErr. A pull request to try that out would be welcome.

erikdubbelboer avatar Apr 10 '24 18:04 erikdubbelboer