mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-22 23:32:12 +01:00
with fixes
This commit is contained in:
parent
3422147e17
commit
3eb891422f
@ -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};
|
||||||
|
@ -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)?;
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user