MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / testInboundPeerConn

Function testInboundPeerConn

p2p/test_util.go:222–228  ·  view source on GitHub ↗
(
	conn net.Conn,
	config *config.P2PConfig,
	ourNodePrivKey crypto.PrivKey,
)

Source from the content-addressed store, hash-verified

220}
221
222func testInboundPeerConn(
223 conn net.Conn,
224 config *config.P2PConfig,
225 ourNodePrivKey crypto.PrivKey,
226) (peerConn, error) {
227 return testPeerConn(conn, config, false, false, ourNodePrivKey, nil)
228}
229
230func testPeerConn(
231 rawConn net.Conn,

Callers 3

DialMethod · 0.85
acceptMethod · 0.85
addPeerWithConnectionMethod · 0.85

Calls 1

testPeerConnFunction · 0.85

Tested by 2

DialMethod · 0.68
acceptMethod · 0.68