|
|
|
@ -7,6 +7,7 @@ use std::borrow::Cow;
|
|
|
|
|
use std::env; |
|
|
|
|
use std::io::Cursor; |
|
|
|
|
use std::iter::Skip; |
|
|
|
|
use std::time::Duration; |
|
|
|
|
extern crate serde_json; |
|
|
|
|
|
|
|
|
|
pub async fn run(mut args: Skip<env::Args>) { |
|
|
|
@ -17,7 +18,10 @@ pub async fn run(mut args: Skip<env::Args>) {
|
|
|
|
|
"mr" => structs::MR_QUERY, |
|
|
|
|
_ => panic!("Unknown type"), |
|
|
|
|
}; |
|
|
|
|
let client = ClientBuilder::new().timeout(60).build().unwrap(); |
|
|
|
|
let client = ClientBuilder::new() |
|
|
|
|
.timeout(Duration::from_secs(60)) |
|
|
|
|
.build() |
|
|
|
|
.unwrap(); |
|
|
|
|
let text = client |
|
|
|
|
.post("https://gitlab.com/api/graphql") |
|
|
|
|
.body( |
|
|
|
|