MCPcopy
hub / github.com/duke-git/lancet / ExampleCustomBackoffStrategy

Struct ExampleCustomBackoffStrategy

retry/retry_example_test.go:54–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54type ExampleCustomBackoffStrategy struct {
55 interval time.Duration
56}
57
58func (c *ExampleCustomBackoffStrategy) CalculateInterval() time.Duration {
59 return c.interval + 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected