Skip to content

Commit 30aefcb

Browse files
committed
fixup! second round
1 parent 311ea2b commit 30aefcb

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

enterprise/tailnet/coordinator.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -259,26 +259,6 @@ func (c *haCoordinator) handleClientUpdate(id, agent uuid.UUID, node *agpl.Node)
259259
return nil
260260
}
261261

262-
func (c *haCoordinator) handleClientUpdateLocked(id, agent uuid.UUID, node *agpl.Node) error {
263-
agentSocket, ok := c.agentSockets[agent]
264-
if !ok {
265-
c.mutex.Unlock()
266-
// If we don't own the agent locally, send it over pubsub to a node that
267-
// owns the agent.
268-
err := c.publishNodesToAgent(agent, []*agpl.Node{node})
269-
if err != nil {
270-
return xerrors.Errorf("publish node to agent")
271-
}
272-
return nil
273-
}
274-
err := agentSocket.Enqueue([]*agpl.Node{node})
275-
c.mutex.Unlock()
276-
if err != nil {
277-
return xerrors.Errorf("enqueue node: %w", err)
278-
}
279-
return nil
280-
}
281-
282262
// ServeAgent accepts a WebSocket connection to an agent that listens to
283263
// incoming connections and publishes node updates.
284264
func (c *haCoordinator) ServeAgent(conn net.Conn, id uuid.UUID, name string) error {

0 commit comments

Comments
 (0)