diff --git a/lib/proxy/peer/internal/metrics.go b/lib/proxy/peer/internal/metrics.go index 885f095684c77..802d33746f774 100644 --- a/lib/proxy/peer/internal/metrics.go +++ b/lib/proxy/peer/internal/metrics.go @@ -26,7 +26,6 @@ import ( "github.com/gravitational/teleport" "github.com/gravitational/teleport/api/utils/retryutils" - "github.com/gravitational/teleport/lib/utils" "github.com/gravitational/teleport/lib/utils/interval" ) @@ -83,8 +82,8 @@ func RunClientPing(ctx context.Context, cc ClientConn, pings, failedPings promet const pingInterval = time.Minute ivl := interval.New(interval.Config{ Duration: pingInterval * 14 / 13, - FirstDuration: utils.HalfJitter(pingInterval), - Jitter: retryutils.NewSeventhJitter(), + FirstDuration: retryutils.HalfJitter(pingInterval), + Jitter: retryutils.SeventhJitter, }) defer ivl.Stop()