mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
chore: refactor coordination (#15343)
Refactors the way clients of the Tailnet API (clients of the API, which include both workspace "agents" and "clients") interact with the API. Introduces the idea of abstract "controllers" for each of the RPCs in the API, and implements a Coordination controller by refactoring from `workspacesdk`. chore re: #14729
This commit is contained in:
@ -467,7 +467,8 @@ func startClientOptions(t *testing.T, logger slog.Logger, serverURL *url.URL, me
|
||||
_ = conn.Close()
|
||||
})
|
||||
|
||||
coordination := tailnet.NewRemoteCoordination(logger, coord, conn, peer.ID)
|
||||
ctrl := tailnet.NewSingleDestController(logger, conn, peer.ID)
|
||||
coordination := ctrl.New(coord)
|
||||
t.Cleanup(func() {
|
||||
cctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
|
||||
defer cancel()
|
||||
|
Reference in New Issue
Block a user