MCPcopy Create free account
hub / github.com/KOSASIH/skybridge / CreateNode

Method CreateNode

src/api/node/node.go:172–177  ·  view source on GitHub ↗
(ctx context.Context, node *Node)

Source from the content-addressed store, hash-verified

170}
171
172func (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
179func (s *nodeService) UpdateNode(ctx context.Context, node *Node) error {
180 s.mu.Lock()

Callers 1

ServeHTTPMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected