feat: v1.0.4, generate data key and save to db
This commit is contained in:
10
src/cli.rs
10
src/cli.rs
@@ -241,10 +241,10 @@ async fn do_inner_request(sub_arg_matches: &ArgMatches<'_>, action: &str, body:
|
||||
let req = Request::builder().method(Method::POST).uri(uri).body(Body::from(body))?;
|
||||
|
||||
let req_response = client.request(req).await?;
|
||||
if req_response.status() != StatusCode::OK {
|
||||
let status = req_response.status().as_u16();
|
||||
let data = response_to_value(req_response).await?;
|
||||
return simple_error!("Server status is not success: {}, response: {}", status, data);
|
||||
}
|
||||
// if req_response.status() != StatusCode::OK {
|
||||
// let status = req_response.status().as_u16();
|
||||
// let data = response_to_value(req_response).await?;
|
||||
// return simple_error!("Server status is not success: {}, response: {}", status, data);
|
||||
// }
|
||||
response_to_value(req_response).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user