mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: refactor tailnetAPIConnector to use dialer (#15347)
refactors `tailnetAPIConnector` to use the `Dialer` interface in `tailnet`, introduced lower in this stack of PRs. This will let us use the same Tailnet API handling code across different things that connect to the Tailnet API (CLI client, coderd, workspace proxies, and soon: Coder VPN). chore re: #14729
This commit is contained in:
@@ -615,7 +615,7 @@ func newBasicResumeTokenRefresher(
|
||||
errCh: make(chan error, 1),
|
||||
}
|
||||
r.ctx, r.cancel = context.WithCancel(context.Background())
|
||||
r.timer = clock.AfterFunc(never, r.refresh)
|
||||
r.timer = clock.AfterFunc(never, r.refresh, "basicResumeTokenRefresher")
|
||||
go r.refresh()
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user