with fixes

This commit is contained in:
Kasper Juul Hermansen 2023-01-28 16:19:57 +01:00
parent 3422147e17
commit 3eb891422f
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
3 changed files with 3 additions and 4 deletions

View File

@ -1,11 +1,10 @@
use core::time;
use std::{ use std::{
fs::canonicalize, fs::canonicalize,
io::{BufRead, BufReader}, io::{BufRead, BufReader},
path::PathBuf, path::PathBuf,
process::{Child, Stdio}, process::{Child, Stdio},
sync::{mpsc::sync_channel, Arc}, sync::{mpsc::sync_channel, Arc},
thread::sleep,
}; };
use crate::{config::Config, connect_params::ConnectParams}; use crate::{config::Config, connect_params::ConnectParams};

View File

@ -6,7 +6,7 @@ pub fn get_schema() -> eyre::Result<IntrospectionResponse> {
let cfg = Config::new(None, None, None, None); let cfg = Config::new(None, None, None, None);
//TODO: Implement context for proc //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)?;
let schema = session.schema(req_builder)?; let schema = session.schema(req_builder)?;

View File

@ -23,7 +23,7 @@ impl Session {
Self {} Self {}
} }
pub fn start(&self, cfg: Config, conn: &ConnectParams) -> eyre::Result<RequestBuilder> { pub fn start(&self, _cfg: Config, conn: &ConnectParams) -> eyre::Result<RequestBuilder> {
let client = Client::builder() let client = Client::builder()
.user_agent("graphql-rust/0.10.0") .user_agent("graphql-rust/0.10.0")
.connection_verbose(true) .connection_verbose(true)