github.com/letsencrypt/boulder@v0.20251208.0/grpc/skew.go (about) 1 //go:build !integration 2 3 package grpc 4 5 import "time" 6 7 // tooSkewed returns true if the absolute value of the input duration is more 8 // than ten minutes. We break this out into a separate function so that it can 9 // be disabled in the integration tests, which make extensive use of fake 10 // clocks. 11 func tooSkewed(skew time.Duration) bool { 12 return skew > 10*time.Minute || skew < -10*time.Minute 13 }