Skip to content

Commit 7845e9e

Browse files
committed
f - Remove support for secure hosts
1 parent b0e16a6 commit 7845e9e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

lightning-block-sync/src/http.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,18 @@ impl HttpEndpoint {
5353

5454
/// Creates an endpoint using the HTTPS scheme.
5555
pub fn secure_host(host: String) -> Self {
56-
Self {
57-
scheme: Scheme::HTTPS,
58-
host,
59-
port: None,
60-
path: String::from("/"),
56+
#[cfg(test)]
57+
{
58+
Self {
59+
scheme: Scheme::HTTPS,
60+
host,
61+
port: None,
62+
path: String::from("/"),
63+
}
6164
}
65+
// TODO: Refactor HttpClient to support TLS.
66+
#[cfg(not(test))]
67+
unimplemented!()
6268
}
6369

6470
/// Specifies a port to use with the endpoint.

0 commit comments

Comments
 (0)