Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! second round
  • Loading branch information
coadler committed Jun 28, 2023
commit 30aefcb1a6e84fa55ec7a3cd933f9c0b089a72e9
20 changes: 0 additions & 20 deletions enterprise/tailnet/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,26 +259,6 @@ func (c *haCoordinator) handleClientUpdate(id, agent uuid.UUID, node *agpl.Node)
return nil
}

func (c *haCoordinator) handleClientUpdateLocked(id, agent uuid.UUID, node *agpl.Node) error {
agentSocket, ok := c.agentSockets[agent]
if !ok {
c.mutex.Unlock()
// If we don't own the agent locally, send it over pubsub to a node that
// owns the agent.
err := c.publishNodesToAgent(agent, []*agpl.Node{node})
if err != nil {
return xerrors.Errorf("publish node to agent")
}
return nil
}
err := agentSocket.Enqueue([]*agpl.Node{node})
c.mutex.Unlock()
if err != nil {
return xerrors.Errorf("enqueue node: %w", err)
}
return nil
}

// ServeAgent accepts a WebSocket connection to an agent that listens to
// incoming connections and publishes node updates.
func (c *haCoordinator) ServeAgent(conn net.Conn, id uuid.UUID, name string) error {
Expand Down