You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: oxybox/src/http_probe/probe.rs
+10-17Lines changed: 10 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ use trust_dns_resolver::{AsyncResolver, TokioAsyncResolver};
18
18
19
19
usesuper::result::ProbeResult;
20
20
21
-
22
21
/// Struct to hold the results of an HTTP probe.
23
22
/// This struct contains various metrics related to the HTTP request, such as DNS resolution time, connection time, TLS handshake time, HTTP status code, and more.
24
23
/// # Fields
@@ -46,7 +45,6 @@ async fn get_connect_timings(
46
45
>,
47
46
with_tls:bool,
48
47
) -> Result<HttpProbeResult,String>{
49
-
50
48
// step one: DNS resolution
51
49
let dns_start = Instant::now();
52
50
if host.is_empty(){
@@ -87,7 +85,7 @@ async fn get_connect_timings(
87
85
tls_time:None,
88
86
});
89
87
}
90
-
88
+
91
89
// step four: TLS handshake
92
90
let tls_start = Instant::now();
93
91
let tls_stream = connector.connect(host, stream).await;
0 commit comments