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

Method SetNodeInfo

p2p/switch.go:211–213  ·  view source on GitHub ↗

SetNodeInfo sets the switch's NodeInfo for checking compatibility and handshaking with other nodes. NOTE: Not goroutine safe.

(nodeInfo NodeInfo)

Source from the content-addressed store, hash-verified

209// SetNodeInfo sets the switch's NodeInfo for checking compatibility and handshaking with other nodes.
210// NOTE: Not goroutine safe.
211func (sw *Switch) SetNodeInfo(nodeInfo NodeInfo) {
212 sw.nodeInfo = nodeInfo
213}
214
215// NodeInfo returns the switch's NodeInfo.
216// NOTE: Not goroutine safe.

Callers 3

createSwitchFunction · 0.95
createSwitchFunction · 0.95
MakeSwitchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected