Node returns an in-memory node by ID. If the node does not exist, nil is returned.
(id uuid.UUID)
| 215 | // Node returns an in-memory node by ID. |
| 216 | // If the node does not exist, nil is returned. |
| 217 | func (c *coordinator) Node(id uuid.UUID) *Node { |
| 218 | return c.core.node(id) |
| 219 | } |
| 220 | |
| 221 | func (c *core) node(id uuid.UUID) *Node { |
| 222 | c.mutex.Lock() |