newRetryCounter instantiates a new *retryCounter.
()
| 32 | |
| 33 | // newRetryCounter instantiates a new *retryCounter. |
| 34 | func newRetryCounter() *retryCounter { |
| 35 | return &retryCounter{ |
| 36 | MaxRetries: defaultMaxRetries, |
| 37 | MaxRetryDelay: defaultMaxRetryDelay, |
| 38 | count: make(map[string]int), |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // Increment increments the number of retries for a given OID and returns the |
| 43 | // new value. It is safe to call across multiple goroutines. |
no outgoing calls