Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
with fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kjuulh committed Jan 28, 2023
1 parent 3422147 commit 3eb8914
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cli_session.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use core::time;

use std::{
fs::canonicalize,
io::{BufRead, BufReader},
path::PathBuf,
process::{Child, Stdio},
sync::{mpsc::sync_channel, Arc},
thread::sleep,
};

use crate::{config::Config, connect_params::ConnectParams};
Expand Down
2 changes: 1 addition & 1 deletion src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub fn get_schema() -> eyre::Result<IntrospectionResponse> {
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 req_builder = session.start(cfg, &conn)?;
let schema = session.schema(req_builder)?;
Expand Down
2 changes: 1 addition & 1 deletion src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Session {
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()
.user_agent("graphql-rust/0.10.0")
.connection_verbose(true)
Expand Down

0 comments on commit 3eb8914

Please sign in to comment.