conn.go
func newSingleConn(ctx context.Context, local, remote peer.ID, maconn tpt.Conn) iconn.Conn {
	ml := lgbl.Dial("conn", local, remote, maconn.LocalMultiaddr(), maconn.RemoteMultiaddr())

	conn := &singleConn{
		local:  local,
		remote: remote,
		maconn: maconn,
		event:  log.EventBegin(ctx, "connLifetime", ml),
	}

	log.Debugf("newSingleConn %p: %v to %v", conn, local, remote)
	return conn
}
func newSingleConn(ctx context.Context, local, remote peer.ID, maconn tpt.Conn) iconn.Conn {
	ml := lgbl.Dial("conn", local, remote, maconn.LocalMultiaddr(), maconn.RemoteMultiaddr())

	conn := &singleConn{
		local:  local,
		remote: remote,
		maconn: maconn,
		event:  log.EventBegin(ctx, "connLifetime", ml),
	}

	log.Debugf("newSingleConn %p: %v to %v", conn, local, remote)
	return conn
}
func newSingleConn ( ctx context . Context , local , remote peer . ID , maconn tpt . Conn ) iconn . Conn { ml := lgbl . Dial ( " " , local , remote , maconn . LocalMultiaddr ( ) , maconn . RemoteMultiaddr ( ) ) conn := & singleConn { local : local , remote : remote , maconn : maconn , event : log . EventBegin ( ctx , " " , ml ) , } log . Debugf ( " " , conn , local , remote ) return conn }
// newConn constructs a new connection
newConn constructs a new connection