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

Method Reactor

p2p/switch.go:205–207  ·  view source on GitHub ↗

Reactor returns the reactor with the given name. NOTE: Not goroutine safe.

(name string)

Source from the content-addressed store, hash-verified

203// Reactor returns the reactor with the given name.
204// NOTE: Not goroutine safe.
205func (sw *Switch) Reactor(name string) Reactor {
206 return sw.reactors[name]
207}
208
209// SetNodeInfo sets the switch's NodeInfo for checking compatibility and handshaking with other nodes.
210// NOTE: Not goroutine safe.

Callers 8

TestSwitchesFunction · 0.80
CustomReactorsFunction · 0.80
poolRoutineMethod · 0.80
trySwitchToConsensusMethod · 0.80
switchToConsensusMethod · 0.80
CustomReactorsFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestSwitchesFunction · 0.64