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

Method run

p2p/client.go:176–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176func (c *client) run() (err error) {
177 c.sendPipe(c.encryptPipe(c.packPipe(c.dispatch(c.decodePipe(c.decryptPipe(c.readPipe()))))))
178 for {
179 var ok bool
180 select {
181 case <-c.ctx.Done():
182 return
183 case err, ok = <-c.errc:
184 if ok {
185 if errors.Is(err, io.EOF) {
186 err = nil
187 return
188 }
189 return
190 }
191 }
192 }
193 return
194}
195
196func (c *client) close() (err error) {
197 c.cancel()

Callers 1

runClientMethod · 0.80

Calls 7

sendPipeMethod · 0.95
encryptPipeMethod · 0.95
packPipeMethod · 0.95
dispatchMethod · 0.95
decodePipeMethod · 0.95
decryptPipeMethod · 0.95
readPipeMethod · 0.95

Tested by

no test coverage detected