Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import (
)

// WithJitter adds +/- 10% to a duration.
// Deprecated: use timeutil.WithJitter
//
// Deprecated: Use [timeutil.JitterPct(0.1).Apply(d)] instead.
Comment thread
patricios-space marked this conversation as resolved.
Outdated
//
//go:fix inline
func WithJitter(d time.Duration) time.Duration { return timeutil.JitterPct(0.1).Apply(d) }

// ContextFromChan creates a context that finishes when the provided channel
Expand Down
Loading