We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e16a6 commit 7845e9eCopy full SHA for 7845e9e
lightning-block-sync/src/http.rs
@@ -53,12 +53,18 @@ impl HttpEndpoint {
53
54
/// Creates an endpoint using the HTTPS scheme.
55
pub fn secure_host(host: String) -> Self {
56
- Self {
57
- scheme: Scheme::HTTPS,
58
- host,
59
- port: None,
60
- path: String::from("/"),
+ #[cfg(test)]
+ {
+ Self {
+ scheme: Scheme::HTTPS,
+ host,
61
+ port: None,
62
+ path: String::from("/"),
63
+ }
64
}
65
+ // TODO: Refactor HttpClient to support TLS.
66
+ #[cfg(not(test))]
67
+ unimplemented!()
68
69
70
/// Specifies a port to use with the endpoint.
0 commit comments