MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / setNodeAddrCache

Function setNodeAddrCache

route/dns.go:106–114  ·  view source on GitHub ↗

setNodeAddrCache sets node id and addr.

(id *proto.RawNodeID, addr string)

Source from the content-addressed store, hash-verified

104
105// setNodeAddrCache sets node id and addr.
106func setNodeAddrCache(id *proto.RawNodeID, addr string) (err error) {
107 if id == nil {
108 return ErrNilNodeID
109 }
110 resolver.Lock()
111 defer resolver.Unlock()
112 resolver.cache[*id] = addr
113 return
114}
115
116// SetNodeAddrCache sets node id and addr.
117func SetNodeAddrCache(id *proto.RawNodeID, addr string) (err error) {

Callers 2

SetNodeAddrCacheFunction · 0.85
initBPNodeIDsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected