feat(rpc): rename Client generics to Provider (#3126)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Thomas Coratger
2023-06-13 19:17:16 +02:00
committed by GitHub
parent 225e05267b
commit 39c6b22829
22 changed files with 330 additions and 311 deletions

View File

@ -17,8 +17,8 @@ pub type TraceBlockResult = Result<(Vec<LocalizedTransactionTrace>, BlockId), (R
/// An extension trait for the Trace API.
#[async_trait::async_trait]
pub trait TraceApiExt {
/// The client type that is used to make the requests.
type Client;
/// The provider type that is used to make the requests.
type Provider;
/// Returns a new stream that yields the traces for the given blocks.
///
@ -39,7 +39,7 @@ pub trait TraceApiExt {
#[async_trait::async_trait]
impl<T: TraceApiClient + Sync> TraceApiExt for T {
type Client = T;
type Provider = T;
fn trace_block_buffered<I, B>(&self, params: I, n: usize) -> TraceBlockStream<'_>
where