(ctx context.Context, node *Node)
| 170 | } |
| 171 | |
| 172 | func (s *nodeService) CreateNode(ctx context.Context, node *Node) error { |
| 173 | s.mu.Lock() |
| 174 | defer s.mu.Unlock() |
| 175 | s.nodes[node.ID] = node |
| 176 | return nil |
| 177 | } |
| 178 | |
| 179 | func (s *nodeService) UpdateNode(ctx context.Context, node *Node) error { |
| 180 | s.mu.Lock() |