MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / testNodeInfo

Function testNodeInfo

p2p/test_util.go:258–260  ·  view source on GitHub ↗

---------------------------------------------------------------- rand node info

(id ID, name string)

Source from the content-addressed store, hash-verified

256// rand node info
257
258func testNodeInfo(id ID, name string) NodeInfo {
259 return testNodeInfoWithNetwork(id, name, "testing")
260}
261
262func testNodeInfoWithNetwork(id ID, name, network string) NodeInfo {
263 return DefaultNodeInfo{

Calls 1

testNodeInfoWithNetworkFunction · 0.85