Skip to content

Commit

Permalink
fix(http client): use HttpBackend as default (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored Jun 6, 2024
1 parent 79e07eb commit 47f9c6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/http-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use std::fmt;
use std::sync::Arc;
use std::time::Duration;

use crate::transport::{self, Error as TransportError, HttpTransportClient, HttpTransportClientBuilder};
use crate::transport::{self, Error as TransportError, HttpBackend, HttpTransportClient, HttpTransportClientBuilder};
use crate::types::{NotificationSer, RequestSer, Response};
use crate::{HttpRequest, HttpResponse};
use async_trait::async_trait;
Expand Down Expand Up @@ -294,7 +294,7 @@ impl HttpClientBuilder<Identity> {

/// JSON-RPC HTTP Client that provides functionality to perform method calls and notifications.
#[derive(Debug, Clone)]
pub struct HttpClient<S = Identity> {
pub struct HttpClient<S = HttpBackend> {
/// HTTP transport client.
transport: HttpTransportClient<S>,
/// Request timeout. Defaults to 60sec.
Expand All @@ -303,7 +303,7 @@ pub struct HttpClient<S = Identity> {
id_manager: Arc<RequestIdManager>,
}

impl HttpClient<Identity> {
impl HttpClient<HttpBackend> {
/// Create a builder for the HttpClient.
pub fn builder() -> HttpClientBuilder<Identity> {
HttpClientBuilder::new()
Expand Down

0 comments on commit 47f9c6c

Please sign in to comment.