Skip to content

Commit 514bc7c

Browse files
authored
chore(tx-cache): expose internal reqwest client (#73)
* chore(tx-cache): expose internal reqwest client this should be exposed * chore: clippy * chore: expose url
1 parent 94333d8 commit 514bc7c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/tx-cache/src/client.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ impl TxCache {
5454
Self::new_with_client(url, client)
5555
}
5656

57+
/// Get the client used to send requests
58+
pub const fn client(&self) -> &reqwest::Client {
59+
&self.client
60+
}
61+
62+
/// Get the URL of the transaction cache.
63+
pub const fn url(&self) -> &reqwest::Url {
64+
&self.url
65+
}
66+
5767
async fn forward_inner<T: Serialize + Send, R: DeserializeOwned>(
5868
&self,
5969
join: &'static str,

0 commit comments

Comments
 (0)