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

Method sendReq

p2p/request.go:35–43  ·  view source on GitHub ↗
(ch chan p2pRequest)

Source from the content-addressed store, hash-verified

33 return
34}
35func (r *p2pRequest) sendReq(ch chan p2pRequest) (err error) {
36 select {
37 case ch <- *r:
38 case <-r.ctx.Done():
39 err = r.ctx.Err()
40 fmt.Println("p2pRequest sendReq err", err)
41 }
42 return
43}
44
45func (r *p2pRequest) waitForResult() (res interface{}, err error) {
46 select {

Callers 3

RequestMethod · 0.80
ReplyMethod · 0.80
sendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected