build: warnings

This commit is contained in:
ardocrat
2024-05-18 21:26:48 +03:00
parent eebbf40ce5
commit 019e5428df
5 changed files with 15 additions and 31 deletions
-16
View File
@@ -31,7 +31,6 @@ use fs_mistrust::Mistrust;
use grin_util::secp::SecretKey;
use hyper::{Body, Uri};
use parking_lot::RwLock;
use serde_json::json;
use sha2::Sha512;
use tls_api::{TlsConnector as TlsConnectorTrait, TlsConnectorBuilder};
use tokio::time::sleep;
@@ -298,21 +297,6 @@ impl Tor {
w_services.remove(&service_id);
break;
}
// let data = json!({
// "id": 1,
// "jsonrpc": "2.0",
// "method": "check_version",
// "params": []
// })
// .to_string();
// Create http tor-powered client to post data.
// Create request.
// let req = hyper::Request::builder()
// .method(hyper::Method::POST)
// .uri(url.clone())
// .body(Body::from(data))
// .unwrap();
// Send request.
let duration = match http
.get(Uri::from_str(url.clone().as_str()).unwrap())