You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
Retry multipliers and Jitters can either be of type float or ISO 8601 duration string per the specification. The code in retry.go currently has the type as intstr.IntOrString. To use a multiplier or jitter as float, you have to parse it from the string. This works, but it seems odd that the SDK allows them to be provided as integers when the spec says they have to be floats or strings.
What you expected to happen:
Be able to provide a float in a non-string representation and get it without having to parse a string. Eg, an equivelant functionality to intstr.IntOrString along the lines of FloatOrString.
How to reproduce it:
Anything else we need to know?:
Environment:
Specification version used:
Go version:
The text was updated successfully, but these errors were encountered:
What happened:
Retry multipliers and Jitters can either be of type float or ISO 8601 duration string per the specification. The code in retry.go currently has the type as
intstr.IntOrString
. To use a multiplier or jitter as float, you have to parse it from the string. This works, but it seems odd that the SDK allows them to be provided as integers when the spec says they have to be floats or strings.What you expected to happen:
Be able to provide a float in a non-string representation and get it without having to parse a string. Eg, an equivelant functionality to intstr.IntOrString along the lines of FloatOrString.
How to reproduce it:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: