Skip to content

Commit 82070ea

Browse files
committed
removed unwanted comments.
1 parent a4b945a commit 82070ea

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ blocking-https-native = ["blocking", "minreq/https-native"]
4343
blocking-https-bundled = ["blocking", "minreq/https-bundled"]
4444

4545
tokio = ["dep:tokio"]
46-
async = [ "tokio?/time"]
46+
async = ["tokio?/time"]
4747
async-https = ["async"]
4848
async-https-native = ["async"]
4949
async-https-rustls = ["async"]

src/async.rs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,13 @@ use bitcoin::{
2525
#[allow(unused_imports)]
2626
use log::{debug, error, info, trace};
2727

28-
// use reqwest::{header, Client, Response};
29-
use async_minreq::{Method, Request}; //-----------------------added-------------------
28+
use async_minreq::{Method, Request};
3029
use crate::api::AddressStats;
3130
use crate::{
3231
BlockStatus, BlockSummary, Builder, Error, MerkleProof, OutputStatus, Tx, TxStatus,
3332
BASE_BACKOFF_MILLIS, RETRYABLE_ERROR_CODES,
3433
};
3534

36-
// #[derive(Debug, Clone)]
37-
// pub struct AsyncClient<S = DefaultSleeper> {
38-
// /// The URL of the Esplora Server.
39-
// url: String,
40-
// /// The inner [`reqwest::Client`] to make HTTP requests.
41-
// client: Client,
42-
// /// Number of times to retry a request
43-
// max_retries: usize,
44-
45-
// /// Marker for the type of sleeper used
46-
// marker: PhantomData<S>,
47-
// }
48-
4935
#[derive(Debug, Clone)]
5036
pub struct AsyncClient<S = DefaultSleeper> {
5137
/// The base URL of the Esplora server.
@@ -439,11 +425,6 @@ impl<S: Sleeper> AsyncClient<S> {
439425
&self.url
440426
}
441427

442-
/// Get the underlying [`Client`].
443-
// pub fn client(&self) -> &Client {
444-
// &self.client
445-
// }
446-
447428
/// Sends a GET request to the given `url`, retrying failed attempts
448429
/// for retryable error codes until max retries hit.
449430
async fn get_with_retry(&self, url: &str) -> Result<async_minreq::Response, Error> {

0 commit comments

Comments
 (0)