MCPcopy Create free account
hub / github.com/DNAProject/DNA / Start

Method Start

p2pserver/message/utils/msg_router.go:95–98  ·  view source on GitHub ↗

Start starts the loop to handle the message from the network

()

Source from the content-addressed store, hash-verified

93
94// Start starts the loop to handle the message from the network
95func (this *MessageRouter) Start() {
96 go this.hookChan(this.RecvChan, this.stopRecvCh)
97 log.Debug("[p2p]MessageRouter start to parse p2p message...")
98}
99
100// hookChan loops to handle the message from the network
101func (this *MessageRouter) hookChan(channel chan *types.MsgPayload,

Callers

nothing calls this directly

Calls 2

hookChanMethod · 0.95
DebugFunction · 0.92

Tested by

no test coverage detected