@@ -25,27 +25,13 @@ use bitcoin::{
25
25
#[ allow( unused_imports) ]
26
26
use log:: { debug, error, info, trace} ;
27
27
28
- // use reqwest::{header, Client, Response};
29
- use async_minreq:: { Method , Request } ; //-----------------------added-------------------
28
+ use async_minreq:: { Method , Request } ;
30
29
use crate :: api:: AddressStats ;
31
30
use crate :: {
32
31
BlockStatus , BlockSummary , Builder , Error , MerkleProof , OutputStatus , Tx , TxStatus ,
33
32
BASE_BACKOFF_MILLIS , RETRYABLE_ERROR_CODES ,
34
33
} ;
35
34
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
-
49
35
#[ derive( Debug , Clone ) ]
50
36
pub struct AsyncClient < S = DefaultSleeper > {
51
37
/// The base URL of the Esplora server.
@@ -439,11 +425,6 @@ impl<S: Sleeper> AsyncClient<S> {
439
425
& self . url
440
426
}
441
427
442
- /// Get the underlying [`Client`].
443
- // pub fn client(&self) -> &Client {
444
- // &self.client
445
- // }
446
-
447
428
/// Sends a GET request to the given `url`, retrying failed attempts
448
429
/// for retryable error codes until max retries hit.
449
430
async fn get_with_retry ( & self , url : & str ) -> Result < async_minreq:: Response , Error > {
0 commit comments