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

Method AddPeer

p2p/base_reactor.go:35–35  ·  view source on GitHub ↗

AddPeer is called by the switch after the peer is added and successfully started. Use it to start goroutines communicating with the peer.

(peer Peer)

Source from the content-addressed store, hash-verified

33 // AddPeer is called by the switch after the peer is added and successfully
34 // started. Use it to start goroutines communicating with the peer.
35 AddPeer(peer Peer)
36
37 // RemovePeer is called by the switch when the peer is stopped (due to error
38 // or other reason).

Implementers 2

BaseReactorp2p/base_reactor.go
ByzantineReactorconsensus/byzantine_test.go

Calls

no outgoing calls