summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/constants.go
diff options
context:
space:
mode:
authorClaire Wang <claire@tailscale.com>2023-07-11 16:03:01 -0400
committerClaire Wang <claire@tailscale.com>2023-07-12 13:53:32 -0400
commit6ae633b6897e354523fce47ba6466ad531b0cbf3 (patch)
tree8b2b7b2e641a8378c701e97bb01cc6a9df5bdc0b /control/controlhttp/constants.go
parent96d7af34694a859f4dd6c332ac0675203008114a (diff)
downloadtailscale-clairew/refactor-new-timer.tar.xz
tailscale-clairew/refactor-new-timer.zip
tstime: replace time.NewTimer with tstime.Clock timerclairew/refactor-new-timer
Updates #8587 Signed-off-by: Claire Wang <claire@tailscale.com>
Diffstat (limited to 'control/controlhttp/constants.go')
-rw-r--r--control/controlhttp/constants.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/control/controlhttp/constants.go b/control/controlhttp/constants.go
index b838f84c4..76c76699f 100644
--- a/control/controlhttp/constants.go
+++ b/control/controlhttp/constants.go
@@ -11,6 +11,7 @@ import (
"tailscale.com/net/dnscache"
"tailscale.com/net/netmon"
"tailscale.com/tailcfg"
+ "tailscale.com/tstime"
"tailscale.com/types/key"
"tailscale.com/types/logger"
)
@@ -89,6 +90,8 @@ type Dialer struct {
drainFinished chan struct{}
omitCertErrorLogging bool
testFallbackDelay time.Duration
+
+ Clock tstime.Clock
}
func strDef(v1, v2 string) string {