Refactor error tracking to be edge-triggered with node setters
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
3
http.go
3
http.go
@@ -226,11 +226,8 @@ func (t *Tendrils) handleAPIStatusStream(w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
|
||||
func (t *Tendrils) getNodesLocked() []*Node {
|
||||
unreachableNodes := t.errors.GetUnreachableNodeSet()
|
||||
|
||||
nodes := make([]*Node, 0, len(t.nodes.nodes))
|
||||
for _, node := range t.nodes.nodes {
|
||||
node.Unreachable = unreachableNodes[node.ID]
|
||||
nodes = append(nodes, node)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user