(strategy string, dur time.Duration)
| 234 | } |
| 235 | |
| 236 | func InitializeBackoff(strategy string, dur time.Duration) backoff.BackOff { |
| 237 | if strategy == "exponential" { |
| 238 | b := backoff.NewExponentialBackOff() |
| 239 | |
| 240 | return b |
| 241 | } |
| 242 | |
| 243 | return backoff.NewConstantBackOff(dur) |
| 244 | } |
| 245 | |
| 246 | func (r *Route) RunStepsV2(req *Request, rec recorder, log *zap.Logger, kc *key.ResponseKey) (*Response, error) { |
| 247 | if len(r.Steps) == 0 { |