// jitterUp adds random jitter to the duration. // // This adds or subtracts time from the duration within a given jitter fraction. // For example for 10s and jitter 0.1, it will return a time within [9s, 11s]) // // Reference: https://godoc.org/github.com/grpc-ecosystem/go-grpc-middleware/util/backoffutils func jitterUp(duration time.Duration, jitter float64) time.Duration { … }