Skip to content

Commit e831239

Browse files
authored
Merge pull request kubernetes#129041 from aojea/flowcontrol
flowcontrol: remove test dependencies from go binaries
2 parents 5cc6f66 + 5c283cb commit e831239

File tree

1 file changed

+2
-3
lines changed
  • staging/src/k8s.io/client-go/util/flowcontrol

1 file changed

+2
-3
lines changed

staging/src/k8s.io/client-go/util/flowcontrol/backoff.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"time"
2323

2424
"k8s.io/utils/clock"
25-
testingclock "k8s.io/utils/clock/testing"
2625
)
2726

2827
type backoffEntry struct {
@@ -49,15 +48,15 @@ type Backoff struct {
4948
maxJitterFactor float64
5049
}
5150

52-
func NewFakeBackOff(initial, max time.Duration, tc *testingclock.FakeClock) *Backoff {
51+
func NewFakeBackOff(initial, max time.Duration, tc clock.Clock) *Backoff {
5352
return newBackoff(tc, initial, max, 0.0)
5453
}
5554

5655
func NewBackOff(initial, max time.Duration) *Backoff {
5756
return NewBackOffWithJitter(initial, max, 0.0)
5857
}
5958

60-
func NewFakeBackOffWithJitter(initial, max time.Duration, tc *testingclock.FakeClock, maxJitterFactor float64) *Backoff {
59+
func NewFakeBackOffWithJitter(initial, max time.Duration, tc clock.Clock, maxJitterFactor float64) *Backoff {
6160
return newBackoff(tc, initial, max, maxJitterFactor)
6261
}
6362

0 commit comments

Comments
 (0)