add todo for not dropping proc

This commit is contained in:
Kasper Juul Hermansen 2023-01-28 13:36:19 +01:00
parent 06fd730a1c
commit b63c44aded
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -1,13 +1,11 @@
use core::time;
use std::thread::sleep;
use graphql_introspection_query::introspection_response::IntrospectionResponse; use graphql_introspection_query::introspection_response::IntrospectionResponse;
use crate::{config::Config, engine::Engine, session::Session}; use crate::{config::Config, engine::Engine, session::Session};
pub fn get_schema() -> eyre::Result<IntrospectionResponse> { pub fn get_schema() -> eyre::Result<IntrospectionResponse> {
//TODO: Implement cotext for proc
let cfg = Config::new(None, None, None, None); let cfg = Config::new(None, None, None, None);
//TODO: Implement context for proc
let (conn, proc) = Engine::new().start(&cfg)?; let (conn, proc) = Engine::new().start(&cfg)?;
let session = Session::new(); let session = Session::new();
let req_builder = session.start(cfg, &conn)?; let req_builder = session.start(cfg, &conn)?;