Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Nov 4, 2024
1 parent 8f16e3e commit 34759de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dynamic-proxy/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use hyper_util::{client::legacy::connect::HttpConnector, rt::TokioIo};
use std::{future::Future, pin::Pin, task::Poll, time::Duration};
use tokio::net::TcpStream;

/// Light wrapper of `hyper_util::client::legacy::connect::HttpConnector` that adds a timeout to the initial
/// connection being established.
#[derive(Clone)]
pub struct TimeoutHttpConnector {
pub timeout: Duration,
Expand Down

0 comments on commit 34759de

Please sign in to comment.