Skip to content

Commit bde2326

Browse files
committed
Fix references to old backoff "config" terminology.
1 parent 3500585 commit bde2326

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: backoff/counter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
// introduce delays between retries.
1313
type Counter struct {
1414
// Strategy is used to calculate the delay duration.
15-
// If it is nil, DefaultBackoffConfig is used.
15+
// If it is nil, DefaultStrategy is used.
1616
Strategy Strategy
1717

1818
// failures is the number of successive failures that have occurred.

Diff for: backoff/counter_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var _ = Describe("type Counter", func() {
3737
It("uses the default strategy if none is specified", func() {
3838
counter.Strategy = nil
3939

40-
// The default configuration uses FullJitter, so this is hard to
40+
// The default strategy uses FullJitter, so this is hard to
4141
// test well, but essentially we're ensuring it doesn't panic.
4242

4343
Expect(counter.Fail(nil)).To(BeNumerically("<=", 3*time.Second))

0 commit comments

Comments
 (0)