MCPcopy Create free account
hub / github.com/DOSNetwork/core / replyResult

Method replyResult

p2p/request.go:57–65  ·  view source on GitHub ↗
(res interface{}, err error)

Source from the content-addressed store, hash-verified

55}
56
57func (r *p2pRequest) replyResult(res interface{}, err error) {
58 r.once.Do(func() {
59 defer close(r.reply)
60 select {
61 case <-r.ctx.Done():
62 case r.reply <- p2pResult{res: res, err: err}:
63 }
64 })
65}

Callers 5

receiveHandlerMethod · 0.80
handleCallReqMethod · 0.80
sendMethod · 0.80
dispatchMethod · 0.80
packPipeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected