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

Function thisNode

naconn/conn_test.go:160–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func thisNode() *proto.Node {
161 if conf.GConf != nil {
162 for _, node := range conf.GConf.KnownNodes {
163 if node.ID == conf.GConf.ThisNodeID {
164 return &node
165 }
166 }
167 }
168 return nil
169}
170
171func setup() {
172 rand.Seed(time.Now().UnixNano())

Callers 1

TestNAConnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected