diff options
| author | Claire Wang <claire@tailscale.com> | 2023-07-11 16:03:01 -0400 |
|---|---|---|
| committer | Claire Wang <claire@tailscale.com> | 2023-07-12 13:53:32 -0400 |
| commit | 6ae633b6897e354523fce47ba6466ad531b0cbf3 (patch) | |
| tree | 8b2b7b2e641a8378c701e97bb01cc6a9df5bdc0b /control/controlhttp/constants.go | |
| parent | 96d7af34694a859f4dd6c332ac0675203008114a (diff) | |
| download | tailscale-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.go | 3 |
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 { |
