MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / registerNode

Method registerNode

naconn/conn_test.go:52–55  ·  view source on GitHub ↗
(node *proto.Node)

Source from the content-addressed store, hash-verified

50}
51
52func (r *simpleResolver) registerNode(node *proto.Node) {
53 key := *(node.ID.ToRawNodeID())
54 r.nodes.Store(key, node)
55}
56
57func (r *simpleResolver) Resolve(id *proto.RawNodeID) (addr string, err error) {
58 var node *proto.Node

Callers 1

TestNAConnFunction · 0.95

Calls 1

ToRawNodeIDMethod · 0.80

Tested by

no test coverage detected