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

Method close

p2p/client.go:196–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194}
195
196func (c *client) close() (err error) {
197 c.cancel()
198 err = c.conn.Close()
199 if err != nil {
200 err = errors.Errorf("client close: %w", err)
201 }
202 <-c.ctx.Done()
203 return
204}
205
206func (c *client) send(req p2pRequest) {
207 go func() {

Callers 5

dispatchMethod · 0.95
ListenMethod · 0.80
receiveHandlerMethod · 0.80
callHandlerMethod · 0.80
handleCallReqMethod · 0.80

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected